2D/3D meshing

Volumic mesh

The screencast below shows a volumic quandrangular mesh of a shapes resulting from a boolean operation (a cylinder removed from a box).

Screencast generated from the volumic_mesh.py sample from the /samples/Level1/SMESH folder.

Triangle/Quadrangle surfacic mesh

With pythonOCC 0.4, you can mesh any TopoDS_Shape object (either a surface or the boundary of a volume) with triangles. You can use:

  • the basic Mesher provided with OCC (first scenario on the screencast below),
  • use the standard triangle mesher of SMESH (second scenario) or
  • use the MEFISTO2 triangle mesher from SMESH.

This screencast was generated from the sample surfacic_mesh.py available in the /samples/src/Level1/SMESH folder.