MeshModel

class compas_gmsh.models.MeshModel(*args, **kwargs)

Bases: Model

Model for mesh (re)meshing.

Methods

find_point_at_vertex

Find the model point at a vertex of the input mesh.

from_mesh

Create a mesh model from a mesh.

generate_mesh

Generate a mesh of the current model.

mesh_targetlength_at_vertex

Set the target length at a particular mesh vertex.

read_options_from_attributes

Read the model options from the attributes of the mesh data structure.

Inherited Methods

curve_coordinates_at

Get the coordinates of a point on a curve in the model.

curve_domain

Get the domain of a curve in the model.

curve_to_polyline

Get the coordinates of a point on a curve in the model.

curve_vertices

Get the vertices of a curve.

destroy

find_points_at_xy

Find the model points at or close to a spatial location.

find_points_at_xyz

Find the model points at or close to a spatial location.

from_brep

Construct a model from a Brep.

from_step

Construc a model from the data contained in a STEP file.

heal

Heal the underlying OCC model.

mesh_node_xyz

Get the coordinates of the mesh nodes.

mesh_targetlength_at_point

Set the target length at a particular mesh point.

mesh_to_compas

Convert the model mesh to a COMPAS mesh data structure.

mesh_to_openmesh

Convert the model mesh to a COMPAS mesh data structure.

mesh_to_quads

Convert the model mesh to a list of quads.

mesh_to_tets

Convert the model mesh to a COMPAS mesh data structure.

mesh_to_triangles

Convert the model mesh to a list of triangles.

mesh_to_vertices_and_faces

Convert the model mesh to a COMPAS mesh data structure.

optimize_mesh

Optimize the model mesh using the specified method.

point_coordinates

Get the coordinates of a point in the model.

point_to_point

Get the coordinates of a point in the model.

recombine_mesh

Recombine the mesh into quadrilateral faces.

refine_mesh

Refine the model mesh by uniformly splitting the edges.

surface_coordinates_at

Get the coordinates of a point on a surface in the model.

surface_curves

Get the boundary curves of a surface in the model.

surface_domain

Get the domain of a surface in the model.

surface_faces

Get the faces of a surface.

surface_mesh

Get the mesh of a surface entity.

surface_vertices

Get the vertices of a surface.

synchronize

Syncronize the geometry with the underlying OCC model.

volume_curves

Get the curves of a volume in the model.

volume_faces

Get the faces of a volume.

volume_mesh

Get the mesh of a volume entity.

volume_points

Get the points of a volume in the model.

volume_surfaces

Get the surfaces of a volume in the model.

volume_tets

Get the tetrahedra of a volume entity.

volume_vertices

Get the vertices of a volume.