MeshModel
¤
Model for mesh (re)meshing.
Functions¤
find_point_at_vertex
¤
from_mesh
classmethod
¤
generate_mesh
¤
generate_mesh(dim: int = 2) -> None
Generate a mesh of the current model.
Parameters:
-
dim(int, default:2) –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 :meth:
mesh_to_compas, :meth:mesh_to_openmesh, or :meth:mesh_to_tets.
Notes
The geometry is automatically synchronised with the underlying OCC model.
Therefore, there is no need to call :meth:synchronize before generating the mesh.
To influence the meshing process, use the options of the model (:attr:options.mesh).
mesh_targetlength_at_vertex
¤
read_options_from_attributes
¤
Read the model options from the attributes of the mesh data structure.
Returns:
-
None–