Reads the position of one vertex of a mesh.
The mesh and the vertex index
The vertex position
Reads the three vertex indexes of one triangle of a mesh, in counterclockwise order.
The mesh and the triangle index
The three vertex indexes
Reads the tangent of one half-edge of a smoothed mesh: the direction the surface leaves the edge's start vertex in, as three numbers plus a weight.
Half-edge three times the triangle index plus j is the edge of triangle t that starts at
its j-th vertex; a mesh without smoothing tangents has none.
The mesh and the half-edge index
The tangent as [x, y, z, weight]
Reads the properties of one vertex beyond its position, such as normals or colors stored in extra channels.
The mesh and the vertex index
The extra property values, in channel order
Reads the column-major 4x4 matrix that carries the original mesh onto one run of triangles, the placement of that instance.
The mesh and the run index
The 16 numbers of the matrix
Tells whether one run of triangles faces the other way than the original mesh it came from, as the inner surface left by a subtraction does. Informational: the normals a mesh hands out are already oriented for the result.
The mesh and the run index
True when the run is a backside
Tells whether the first three extra property channels of one run of triangles hold vertex
normals, which manifold.operations.calculateNormals writes there.
The mesh and the run index
True when the run carries normals in its properties
Counts the property channels each vertex of a mesh carries; the position alone takes three.
The mesh
The number of properties per vertex
Counts the property vertices of a mesh, which can exceed the geometric vertices where neighboring triangles carry different properties.
The mesh
The number of vertices
Counts the triangles of a mesh, which together make its whole surface.
The mesh
The number of triangles
Counts the triangle runs of a mesh: each run is a stretch of consecutive triangles that came from the same instance of the same input shape.
The mesh
The number of runs
Reading Manifold mesh data: the position and extra properties of a vertex, the vertices of a triangle, the tangent of a half-edge, the transform of a triangle run, and the counts of properties, vertices, triangles and runs. Indexes count from 0.