Toponaming/Part: Remove makeElementShape and cleanup opcode code

This commit is contained in:
bgbsww
2024-02-18 16:37:09 -05:00
committed by Chris Hennes
parent 2d0ef0e659
commit 0065c9cce7
13 changed files with 97 additions and 269 deletions

View File

@@ -26,7 +26,7 @@
#endif
#include "FeaturePartCut.h"
#include "TopoShapeOpCode.h"
using namespace Part;
@@ -35,6 +35,11 @@ PROPERTY_SOURCE(Part::Cut, Part::Boolean)
Cut::Cut() = default;
const char *Cut::opCode() const
{
return Part::OpCodes::Cut;
}
BRepAlgoAPI_BooleanOperation* Cut::makeOperation(const TopoDS_Shape& base, const TopoDS_Shape& tool) const
{
// Let's call algorithm computing a cut operation: