Module mesh

Source
Expand description

Indexed triangle meshes from usd::usdgeom::mesh.

In ifcx_alpha files the attribute is an object:

"usd::usdgeom::mesh": {
    "points": [[0, 0, 0], [1, 0, 0], [1, 1, 0]],
    "faceVertexIndices": [0, 1, 2]
}

Every face is a triangle: none of the 1 925 meshes in the upstream examples (1a63082) has faceVertexCounts, and upstream’s viewer reads the indices three at a time. If faceVertexCounts is present, every entry must be 3; polygons are rejected rather than triangulated, since a fan would draw concave faces wrongly. Other fields (USD orientation, normals, primvars) are ignored; winding is taken as USD’s default right-handed, counter-clockwise front face.

Structs§

TriangleMesh
An indexed triangle mesh in the node’s local coordinates.

Constants§

ATTRIBUTE
Attribute id that carries a mesh.