I'm looking for a way to discern between smooth and sharp edges in a triangulation.
At the moment, I take the triangulation of each face of a solid like this:
TopoDS_Face actFace = TopoDS::Face(actExp->Current());
Handle(Poly_Triangulation) facing = BRep_Tool::Triangulation(actFace, Loc);
I then use the outer wire of the face and iterate through all the edges.
TopoDS_Wire oWire = BRepTools::OuterWire(actFace);
for (BRepTools_WireExplorer actEdgeExp = BRepTools_WireExplorer(oWire); actEdgeExp.More(); actEdgeExp.Next())
TopoDS_Edge actEdge = TopoDS::Edge(actEdgeExp.Current());
In the end, I only want to have the sharp edges of each face (i.e. the edges between faces with a kink), not the ones where the two adjacent faces are (more or less) continous.
Is there an (easy) way to get this (i.e. the function Is_Sharp_Edge())?
I already found out that BRep_Tool::IsClosed() can be used to remove the seam edges, but this doesn't help for the edges in question here.
Thanks in advance,