MCPcopy Create free account
hub / github.com/OpenWebCAD/node-occ / registerShapes

Function registerShapes

src/ShapeFactory.cc:860–876  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

858
859
860static void registerShapes(BRepAlgoAPI_BooleanOperation* pTool, Solid* newSolid, Solid* oldSolid1, Solid* oldSolid2)
861{
862 const TopoDS_Shape& oldShape1 = oldSolid1->shape();
863 const TopoDS_Shape& oldShape2 = oldSolid2->shape();
864 const TopoDS_Shape& newShape = newSolid->shape();
865
866
867 BRepAlgoAPI_BooleanOperation_Adaptor tool(pTool);
868 ShapeNameAccessor na1(oldSolid1, 1);
869 ShapeNameAccessor na2(oldSolid2, 2);
870 ShapeNameSetter ns(newSolid);
871
872 ShapeClassifier classifier(&tool, &na1, &na2, &ns, newShape);
873
874 classifier.classify();
875
876}
877
878static void registerShapes(BRepBuilderAPI_MakeShape* pTool, Solid* newSolid, Solid* oldSolid)
879{

Callers 3

NAN_METHODFunction · 0.85
filletFunction · 0.85

Calls 1

classifyMethod · 0.80

Tested by

no test coverage detected