PrimitiveFacts beta
Interface of @v12-engine/client/common
export interface PrimitiveFactsA primitive of a mesh: one draw, in one material
Members
attributes
attributes: string[];What each vertex carries: POSITION, NORMAL, TEXCOORD_0, JOINTS_0...
compressed
compressed: boolean;Squeezed in the file (Draco), unpacked on loading
drawnAs
drawnAs: string;The mesh Babylon makes of it, by name: what the stage outlines for it
index
index: number;Which it is of its mesh's
indexBytes
indexBytes: number;Bytes of its indices on the graphics card
indexed
indexed: boolean;Indexed (the vertices shared between triangles) or not
material
material?: number;The index of the file's material it is drawn with; none when it has none
max
max?: [number, number, number];The primitive's other corner of the box around it, in its own place
min
min?: [number, number, number];Its corners, in its own place: before the nodes above it move it
mode
mode: 'triangles' | 'strip' | 'fan' | 'lines' | 'points';How its vertices make shapes: triangles almost always; strips, fans, lines or points
targets
targets: number;Shapes it can be blended into (morph targets)
triangles
triangles: number;Triangles of the primitive
vertexBytes
vertexBytes: number;Bytes of its vertices and indices, as they go to the graphics card
vertices
vertices: number;Vertices of the primitive