Use model.component(<ctag>).mesh(<tag>).create(<ftag>,"FreeTri") to create an unstructured triangular mesh.
Use model.component(<ctag>).mesh(<tag>).feature(<ftag>).selection() to specify the domain (boundary in 3D) selection. If you do not specify any selection the feature creates a mesh on the remaining geometric entities in 2D. In 3D, the default selection is empty.
Use the property method to specify the method used to triangulate domains in 2D and faces in 3D. A Delaunay based method is used if the property is set to
del and an advancing front method is used if the property is set to
af. If
method is set to
auto, the program tries to choose the best method for each geometric entity.