Wraps the buffers (no copy); throws when their lengths are inconsistent.
ReadonlyboundingLocal bounds; computed from the positions when not given.
ReadonlyedgesSharp edges of the triangles, 2 indices each, local to the geometry; null when none.
ReadonlyidIdentifies the geometry: two GeometryBuffers with the same id are the same geometry.
ReadonlyindicesTriangles, 3 indices each, or segments of lines, 2 each; local to the geometry.
Readonlynormalsxyz snorm8, 3 bytes per vertex; (0, 0, 0) on the flat triangles, shaded with their face normal. Null when the geometry has none: every triangle is flat.
Readonlypositionsxyz, 3 floats per vertex.
ReadonlyprimitiveTriangles (drawn with their sharp edges) or lines.
Segment indices (2 per segment), stored in a Container's segments: the triangles' sharp edges, or the lines.
Triangle indices (3 per triangle), stored in a Container's indices; 0 for lines.
Vertices (positions / 3).
Buffers of one geometry, in its local frame, in the .mgeom formats. Several InputMesh can share one: the MeshController copies it once, into a
GeometryContainer.Only the lengths are checked, not the index values: scanning every index would cost as much as the copy itself.