nanome.api.shapes.mesh module¶
-
class
Mesh[source]¶ Bases:
nanome.api.shapes.shape.ShapeRepresents a mesh. Can display a mesh in Nanome App.-
colors¶ - Colors of the mesh, 4 float per vertex
Parameters: value (Array of float) – Colors of the mesh
-
normals¶ - Normals for each vertex, 3 float per normal
Parameters: value (Array of float) – Normals of the mesh
-
texture_path¶ - Path to the texture mapped to the mesh, has to be png or jpeg
Parameters: value (string) – Path to the texture
-
triangles¶ - Triangles of the mesh, 3 int per triangle
Parameters: value (Array of int) – Triangles of the mesh
-
uv¶ - UV of the mesh, 2 float per vertex
Parameters: value (Array of float) – UV of the mesh
-
vertices¶ - Vertices of the mesh, 3 float per vertex
Parameters: value (Array of float) – Vertices of the mesh
-