CSGModel.generate_mesh
- CSGModel.generate_mesh(dim=2)
Generate a mesh of the current model.
- Parameters:
- dimint, optional
The dimension of the mesh.
- Returns:
- None
The mesh is stored in the model for further refinement and optimisation. To retrieve the generated mesh, use
mesh_to_compas()
,mesh_to_openmesh()
, ormesh_to_tets()
.
Notes
The geometry is automatically synchronised with the underlying OCC model. Therefore, there is no need to call
synchronize()
before generating the mesh. To influence the meshing process, use the options of the model (options.mesh
).