Thu, 12/01/2022 - 12:01
Forums:
I need to display the triangulation of a Step model.Now I could use TopExp_Explorer
to get each face in this model and get all triangles.How can I display one of these triangles ?
BRepExtrema_ShapeList aFaceList;
for (TopExp_Explorer faceExplorer(aisShape->Shape(), TopAbs_FACE); faceExplorer.More(); faceExplorer.Next())
{
TopLoc_Location loc;
TopoDS_Face aFace = TopoDS::Face(faceExplorer.Current());
Handle_Poly_Triangulation triFace = BRep_Tool::Triangulation(aFace, loc);
}