Skip to content

compas_cgal.types ¤

Attributes¤

Faces module-attribute ¤

Faces = Sequence[list[int]] | IntNx3

The faces of a mesh, defined as an array-like sequence of faces, with each face represented by 3 vertex indices.

FacesNumpy module-attribute ¤

FacesNumpy = IntNx3

An array of faces, with each face defined by 3 vertex indices.

Planes module-attribute ¤

A sequence of planes, with each plane defined as an actual Plane object, or as a tuple of a point and normal vector, with each point represented by a Point object or an equivalent list of coordinates, and each vector represented by a Vector object or an equivalent list of components.

PolylinesNumpy module-attribute ¤

PolylinesNumpy = list[FloatNx3]

A list of polylines, with each polyline represented as a Nx3 array of spatial coordinates.

PolylinesNumpySkeleton module-attribute ¤

PolylinesNumpySkeleton = list[tuple[list[float], list[float]]]

A list of polylines, where each polyline is represented by a tuple of start and end point coordinates.

SkeletonVertexMapping module-attribute ¤

SkeletonVertexMapping = list[tuple[list[int], list[int]]]

Vertex correspondence mapping for skeleton edges. Each tuple contains two lists: the first list has indices of original mesh vertices that contracted to the skeleton edge's start vertex, the second list has indices that contracted to the skeleton edge's end vertex.

Vertices module-attribute ¤

Vertices = Sequence[list[float]] | FloatNx3

The vertices of a mesh, defined as an array-like sequence of vertices, with each vertex represented by 3 spatial coordinates.

VerticesFaces module-attribute ¤

VerticesFaces = tuple[Vertices, Faces]

Representation of a mesh as a tuple of vertices and faces.

VerticesFacesNumpy module-attribute ¤

VerticesFacesNumpy = tuple[FloatNx3, IntNx3]

Representation of a mesh as a tuple of vertices and faces, with the vertices represented a Nx3 array of spatial coordinates, and the faces as a Fx3 array of vertex indices.

VerticesNumpy module-attribute ¤

VerticesNumpy = FloatNx3

An array of vertices, with each vertex defined by 3 spatial coordinates.