Toponaming: Refactor refine to its own FeatureRefine class

This commit is contained in:
bgbsww
2024-07-30 08:34:34 -04:00
parent 4fbc81f10a
commit 2a19d8f6fb
15 changed files with 185 additions and 110 deletions

View File

@@ -24,13 +24,13 @@
#ifndef PARTDESIGN_FeatureAdditive_H
#define PARTDESIGN_FeatureAdditive_H
#include "Feature.h"
#include "FeatureRefine.h"
/// Base class of all additive features in PartDesign
namespace PartDesign
{
class PartDesignExport FeatureAddSub : public PartDesign::Feature
class PartDesignExport FeatureAddSub : public PartDesign::FeatureRefine
{
PROPERTY_HEADER_WITH_OVERRIDE(PartDesign::FeatureAddSub);
@@ -49,12 +49,10 @@ public:
virtual void getAddSubShape(Part::TopoShape &addShape, Part::TopoShape &subShape);
Part::PropertyPartShape AddSubShape;
App::PropertyBool Refine;
protected:
Type addSubType{Additive};
TopoShape refineShapeIfActive(const TopoShape&) const;
};
using FeatureAddSubPython = App::FeaturePythonT<FeatureAddSub>;