Model

class compas_gmsh.models.Model(name=None, verbose=False)

Bases: object

Base model for mesh generation.

Parameters:
namestr, optional

The name of the model.

verbose, bool, optional

Flag indicating if output should be printed to the terminal.

options.meshMeshOptions

The meshing options.

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.

generate_mesh

Generate a mesh of the current model.

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.