CSGModel
- class compas_gmsh.models.CSGModel(tree, name, **kwargs)
Bases:
Model
Model for shape generation through Constructive Solid Geometry.
- Parameters:
- treedict
The CSG tree as a dictionary mapping operations to operands. The operations have to be one of
{"union", "intersection", "difference"}
. The operands have to be lists of shapes or lists of dicts that are CSG trees themselves. At every level of the tree, there can be only one operation.- namestr
The name of the model.
- Attributes:
- treedict
The CSG tree as a dictionary mapping operations to operands. The operations have to be one of
{"union", "intersection", "difference"}
. The operands have to be lists of shapes or lists of dicts that are CSG trees themselves. At every level of the tree, there can be only one operation.
Methods
Add a shape to the underlying OCC model.
Comute the compound shape resulting from the operations on shape primitives in the tree.
Inherited Methods
Get the coordinates of a point on a curve in the model.
Get the domain of a curve in the model.
Get the coordinates of a point on a curve in the model.
Get the vertices of a curve.
Find the model points at or close to a spatial location.
Find the model points at or close to a spatial location.
Construct a model from a Brep.
Construc a model from the data contained in a STEP file.
Generate a mesh of the current model.
Heal the underlying OCC model.
Get the coordinates of the mesh nodes.
Set the target length at a particular mesh point.
Convert the model mesh to a COMPAS mesh data structure.
Convert the model mesh to a COMPAS mesh data structure.
Convert the model mesh to a list of quads.
Convert the model mesh to a COMPAS mesh data structure.
Convert the model mesh to a list of triangles.
Convert the model mesh to a COMPAS mesh data structure.
Optimize the model mesh using the specified method.
Get the coordinates of a point in the model.
Get the coordinates of a point in the model.
Recombine the mesh into quadrilateral faces.
Refine the model mesh by uniformly splitting the edges.
Get the coordinates of a point on a surface in the model.
Get the boundary curves of a surface in the model.
Get the domain of a surface in the model.
Get the faces of a surface.
Get the mesh of a surface entity.
Get the vertices of a surface.
Syncronize the geometry with the underlying OCC model.
Get the curves of a volume in the model.
Get the faces of a volume.
Get the mesh of a volume entity.
Get the points of a volume in the model.
Get the surfaces of a volume in the model.
Get the tetrahedra of a volume entity.
Get the vertices of a volume.