Deleting mesh triangles and computing a mesh/plane intersection

Hi,
I want to load a STL file and then want to work on the mesh deleting triangles if need be. What are the classes dedicated to such a task?
In a second time, I need to intersect this mesh with a plane, is there an operation to do it on the mesh directly? Or should I convert the mesh into a TopoDS_Shape to call BRepAlgoAPI_Common? In that case, what is the path to convert a mesh into a TopoDS_Shape in a simple way?

Mikhail Sazonov's picture

You can use the class Poly_CoherentTriangulation that has some editing functions.

There is no functions in OCCT for operations on triangulation like intersection. However you may be interested in purchasing the CAM library component, which includes such functionality.

There is no also a way in OCCT to convert a mesh to TopoDS_Shape. It is quite complex and expensive task.