import {XKTGeometry} from '@xeokit/xeokit-convert/src/XKTModel/XKTGeometry.js'
XKTGeometry
An element of reusable geometry within an XKTModel.
- Created by XKTModel#createGeometry
- Stored in XKTModel#geometries and XKTModel#geometriesList
- Referenced by XKTMeshs, which belong to XKTEntitys
Member Summary
Public Members | ||
public |
Compressed RGBA vertex colors. |
|
public |
Indices that organize the vertex positions as edges. |
|
public |
Unique ID of this XKTGeometry in XKTModel#geometries. |
|
public |
Index of this XKTGeometry in XKTModel#geometriesList. |
|
public |
Indices that organize the vertex positions and normals as triangles. |
|
public |
Non-compressed 3D vertex normals. |
|
public |
Compressed vertex normals. |
|
public |
The number of XKTMeshs that reference this XKTGeometry. |
|
public |
Non-quantized 3D vertex positions. |
|
public |
Quantized vertex positions. |
|
public |
The type of primitive - "triangles" | "points" | "lines". |
|
public get |
Convenience property that is |
|
public |
When XKTGeometry#primitiveType is "triangles", this is |
|
public |
Non-compressed vertex UVs. |
|
public |
Compressed vertex UVs. |
Public Members
public colorsCompressed: Uint8Array source
Compressed RGBA vertex colors.
Defined only for point primitives. Ignored for triangles and lines.
public edgeIndices: Uint32Array source
Indices that organize the vertex positions as edges.
Defined only for triangle primitives. Ignored for points and lines.
public indices: Uint32Array source
Indices that organize the vertex positions and normals as triangles.
Defined only for triangle and lines primitives. Ignored for points.
public normals: Float32Array source
Non-compressed 3D vertex normals.
Defined only for triangle primitives. Can be null if we want xeokit to auto-generate them. Ignored for points and lines.
public normalsOctEncoded: Int8Array source
Compressed vertex normals.
Defined only for triangle primitives. Ignored for points and lines.
This array is later created from XKTGeometry#normals by XKTModel#finalize.
Will be null if XKTGeometry#normals is also null.
public positions: Float64Array source
Non-quantized 3D vertex positions.
Defined for all primitive types.
public positionsQuantized: Uint16Array source
Quantized vertex positions.
Defined for all primitive types.
This array is later created from XKTGeometry#positions by XKTModel#finalize.
public get reused: boolean: * source
Convenience property that is true
when XKTGeometry#numInstances is greater that one.
public solid: boolean source
When XKTGeometry#primitiveType is "triangles", this is true
when this geometry is a watertight mesh.
Defined only for triangle primitives. Ignored for points and lines.
Set by XKTModel#finalize.