Integrade OpenCASCADE

This commit is contained in:
2026-02-13 20:59:06 -07:00
parent 3543604e79
commit f46590219a
3 changed files with 37 additions and 1 deletions

View File

@@ -20,6 +20,11 @@ SketchFeature::SketchPlane SketchFeature::plane() const
return m_plane;
}
const TopoDS_Shape& SketchFeature::shape() const
{
return m_shape;
}
void SketchFeature::read(const QJsonObject& json)
{
Feature::read(json);

View File

@@ -1,6 +1,7 @@
#ifndef SKETCHFEATURE_H
#define SKETCHFEATURE_H
#include <TopoDS_Shape.hxx>
#include "Feature.h"
class SketchFeature : public Feature
@@ -19,11 +20,14 @@ public:
void setPlane(SketchPlane plane);
SketchPlane plane() const;
const TopoDS_Shape& shape() const;
void read(const QJsonObject &json) override;
void write(QJsonObject &json) const override;
private:
SketchPlane m_plane;
TopoDS_Shape m_shape;
};
#endif // SKETCHFEATURE_H