Mesh

Inheritance diagram of rumba.Mesh
class Mesh

A mesh value.

This mesh class supports n-gones, per vertex and per face user channel with arbitrary types.

attributes A mesh can have any attributes but some of them have a specific meaning:

  • “UV” : the mesh’s UVs. Must be a Shape::face_varying IndexedBufferV2f.

  • “N” : the mesh’s normals. Must be a Shape::face_varying IndexedBufferV3f.

  • “Color” : the mesh’s vertex color. Must be a Shape::face_varying IndexedBufferV3f. If this attribute exists, this vertex color overrides the shader’s diffuse color.

Constructors

__init__

Value(: bool) -> None

Methods

adjacent_vertices()

closest_face(p, max_distance, closest_pos)

Get the closest polygon to a point.

compute_triangle_face_varying_indices(result)

Compute and return the triangle face varying indices.

compute_triangle_indices(result)

Compute and return the triangle vertex indices.

edges_to_faces()

position_topology()

Get the polygons to position lists.

triangulate()

Build a triangle version of the Mesh.

vertex_to_edges()