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

Method classify

src/ShapeFactory.cc:713–737  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

711 }
712}
713void ShapeClassifier::classify()
714{
715 _classify(m_nameAccessor1, TopAbs_FACE);
716 _classify(m_nameAccessor1, TopAbs_EDGE);
717 _classify(m_nameAccessor1, TopAbs_VERTEX);
718 if (m_nameAccessor2) {
719 _classify(m_nameAccessor2, TopAbs_FACE);
720 _classify(m_nameAccessor2, TopAbs_EDGE);
721 _classify(m_nameAccessor2, TopAbs_VERTEX);
722 }
723
724
725
726 //
727 // now check shape of the new solid that but that have'nt been processed yet
728 //
729 // if the shape can be found in old solid we can reuse the name of the
730 // old sub-shape.
731 // otherwise we give them a temporary name for completness
732 //
733 _classifyRemainingSubShape(TopAbs_FACE);
734 _classifyRemainingSubShape(TopAbs_EDGE);
735 _classifyRemainingSubShape(TopAbs_VERTEX);
736
737}
738
739void ShapeClassifier::registerShape(ORIGIN org, IShapeNameAccessor* nameAccessor, const TopoDS_Shape& originalShape, const TopoDS_Shape& newShape, int counter)
740{

Callers 1

registerShapesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected