compas_shapeop

Classes

meshsolver.MeshSolver

Create a solver from a COMPAS mesh.

Functions and Methods

Mesh Integration

meshsolver.MeshSolver.from_obj

Create a MeshSolver from an OBJ file.

meshsolver.MeshSolver.from_grid

Create a MeshSolver from a rectangular grid mesh.

Constraints

meshsolver.MeshSolver.constrain_edge_lengths

Add edge length constraints to all edges of a COMPAS mesh.

meshsolver.MeshSolver.constrain_face_diagonals

Add diagonal constraints to quads to prevent shearing.

meshsolver.MeshSolver.constrain_face_planarity

Add plane constraints to all faces of a COMPAS mesh.

meshsolver.MeshSolver.constrain_face_regularization

Add equalize face constraints to all faces of a COMPAS mesh.

meshsolver.MeshSolver.constrain_triface_bending

Add bending constraints to all pairs of adjacent triangular faces in a COMPAS mesh.

meshsolver.MeshSolver.fix_vertex

Add closeness constraints to all vertices of a COMPAS mesh to the boundary edges.

meshsolver.MeshSolver.fix_vertices

Add closeness constraints to vertices of a COMPAS mesh.

Forces

meshsolver.MeshSolver.add_gravity

Add gravity to the mesh.

meshsolver.MeshSolver.inflate

Add inflation force to the mesh.

Core Methods

meshsolver.MeshSolver.solve

Solve the constraint problem.