A geometry in a SceneModel.

See @xeokit/scene for usage.

Constructors

Properties

aabb?: FloatArrayParam

Axis-aligned, non-quantized 3D boundary of the geometry's vertex positions.

colorsCompressed?: IntArrayParam

Vertex RGB colors, quantized as 8-bit integers.

edgeIndices?: IntArrayParam

Edge indices.

This is either an array of 8-bit, 16-bit or 32-bit values.

id: string

ID for the geometry.

indices?: IntArrayParam

primitive indices.

This is either an array of 8-bit, 16-bit or 32-bit values.

numMeshes: number

The count of SceneMeshes that reference this SceneGeometry.

origin?: FloatArrayParam

TODO

positionsCompressed: IntArrayParam

3D vertex positions, quantized as 16-bit integers.

Internally, the Viewer dequantizes these with @xeokit/scene!SceneGeometry.positionsDecompressMatrix | SceneGeometry.positionsDecompressMatrix.

Vertex positions are required for all primitive types.

primitive: number
rendererGeometry: RendererGeometry

Interface through which this SceneGeometry can load any user-updated geometry arrays into the renderers.

uvsCompressed?: IntArrayParam

UV coordinates, quantized as 16-bit integers.

Internally, the Viewer de-quantizes these with SceneGeometry.uvsDecompressMatrix.

uvsDecompressMatrix?: FloatArrayParam

4x4 matrix to de-quantize the geometry's UV coordinates, when UVs are provided.

Methods