Toponaming: Refactor refine to its own FeatureRefine class
This commit is contained in:
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user