Retrieve tessellated geometry from STEP

I saw that the new version of opencascade (7.7.0) finally supports tessellated geometries from STEP AP242 files.

According to the docs, after the transfer process, each TopoDS_Face from tessellated_face entities should contain a Poly_Triangulation object.

However, it's not clear how can I retrieve this mesh object and I didn't find a way to do this.

My question is how can I get the Poly_Triangulation object attached to a TopoDS_Face?

Dmitrii Pasukhin's picture

Hello,

You can use BRep_Tool::Triangulation to get tesselation from TopoDS_Face.

Best regards, Dmitrii.