compas_singular.datastructures

Network

Network class.

Network

Mesh

Mesh class.

Core

Mesh

Operations

mesh_move_vertex_by

Move a mesh vertex by a vector.

mesh_move_by

Move a mesh by a vector.

mesh_move_vertices_by

Move mesh vertices by different vectors.

mesh_move_vertex_to

Move a mesh vertex to a point.

mesh_move_vertices_to

Move mesh vertices to different points.

Coloring

mesh_vertex_2_coloring

Try to color the vertices of a mesh with two colors only without adjacent vertices with the same color.

mesh_vertex_n_coloring

Color the vertices of a mesh with a minimum number of colors without adjacent vertices with the same color.

mesh_face_2_coloring

Try to color the faces of a mesh with two colors only without adjacent faces with the same color.

mesh_face_n_coloring

Color the faces of a mesh with a minimum number of colors without adjacent faces with the same color.

Quad Mesh

QuadMesh class.

Core

QuadMesh

Coloring

quad_mesh_strip_2_coloring

Try to color the strips of a quad mesh with two colors only without overlapping strips with the same color.

quad_mesh_strip_n_coloring

Color the strips of a quad mesh with a minimum number of colors without overlapping strips with the same color.

quad_mesh_polyedge_2_coloring

Try to color the polyedges of a quad mesh with two colors only without overlapping polyedges with the same color.

quad_mesh_polyedge_n_coloring

Color the polyedges of a quad mesh with a minimum number of colors without overlapping polyedges with the same color.

Shape grammar

add_opening

Add an opening to a mesh face.

add_handle

Add a handle between two quad mesh faces.

Pattern grammar

add_and_delete_strips

Add and delete strips.

add_strip

add_strips

Add strips along mesh polyedges.

delete_strip

delete_strips

Delete strips.

split_strip

Refine a strip in n strips.

split_strips

Refine strips in n strips each.

strip_polyedge_update

Update a polyedge in mesh that has been modified.

strips_to_split_to_prevent_boundary_collapse

Computes strips to split to preserve boundaries before deleting strips.

collateral_strip_deletions

Return the strips that would be deleted from the deletion of other strips.

total_boundary_deletions

Return the strips that would be deleted from the deletion of other strips.

Coarse Quad Mesh

CoarseQuadMesh class.

Pseudo Quad Mesh

PseudoQuadMesh class.

Coarse Pseudo Quad Mesh

CoarsePseudoQuadMesh class.

CoarsePseudoQuadMesh