MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / getWireForFace

Method getWireForFace

src/Mod/TechDraw/App/DrawViewPart.cpp:954–970  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

952}
953
954std::vector<TopoDS_Wire> DrawViewPart::getWireForFace(int idx) const
955{
956 std::vector<TopoDS_Wire> result;
957 std::vector<TopoDS_Edge> edges;
958 const std::vector<TechDraw::FacePtr>& faces = getFaceGeometry();
959 TechDraw::FacePtr ourFace = faces.at(idx);
960 for (auto& w : ourFace->wires) {
961 edges.clear();
962 for (auto& g : w->geoms) {
963 edges.push_back(g->getOCCEdge());
964 }
965 TopoDS_Wire occwire = EdgeWalker::makeCleanWire(edges);
966 result.push_back(occwire);
967 }
968
969 return result;
970}
971
972Base::BoundBox3d DrawViewPart::getBoundingBox() const { return bbox; }
973

Callers 1

extractFaceMethod · 0.80

Calls 3

atMethod · 0.80
clearMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected