Mesh
a 3D mesh consisting of vertices and faces with optional colors and texture coordinates
textureCoordinates
class-attribute
instance-attribute
vertexNormals
class-attribute
instance-attribute
texture_coordinates_count
property
texture_coordinates_count: int
get the number of texture coordinates in the mesh
calculate_area
calculate_area() -> float
calculate total surface area of the mesh
Source code in src/specklepy/objects/geometry/mesh.py
calculate_volume
calculate_volume() -> float
calculate volume of the mesh if it is closed
Source code in src/specklepy/objects/geometry/mesh.py
get_point
get vertex at index as a Point object
Source code in src/specklepy/objects/geometry/mesh.py
get_points
get_texture_coordinate
get texture coordinate at index
Source code in src/specklepy/objects/geometry/mesh.py
get_face_vertices
get the vertices of a specific face
Source code in src/specklepy/objects/geometry/mesh.py
is_closed
is_closed() -> bool
check if the mesh is closed (verifying each edge appears twice)