Optionaloptions: VertexDataMergeOptionsReadonlyidThe unique identifier for the geometry.
ReadonlyisIndicates whether the geometry is transparent.
ReadonlyproductsThe products and meshes associated with the geometry.
The axis-aligned bounding box of the geometry.
The center of the geometry's axis-aligned bounding box in IFC space.
The distance at which the geometry should be culled.
Specifies whether to cull the geometry when the camera moves.
Indices. Describes triangles by referencing items in positions.
Positions (x,y,z).
Uvs (u,v)
Applies the geometry data this instances represents (positions, uvs, indices, aabb and optionally normals.)
to the specified Geometry.
Notice that the geometry is in IFC space. If geometry is assing to a Mesh one can use coordinateSystems.toBabylonTransform
as the mesh pretransform matrix. This will ensure that mesh behaves as if it is in BabylonJS worldspace.
Replaces the internal geometry arrays with tightly-sized copies of the actually-written prefix. After this call, the views into the GeometryBuffer that backed the merge are dropped, so the underlying ArrayBuffers become GC-eligible once the GeometryBuffer itself goes out of scope.
Safe to call only after merge. Result-equivalent on repeated calls but each call performs a fresh allocation; do not call more than once per merge. _currentOffset is preserved so that applyToGeometry and copyNormalsTo continue to compute identical bounds.
The indices array constructor (Uint16Array vs Uint32Array) is preserved; we deliberately do NOT downgrade Uint32 to Uint16 even when the actual position count fits, because consumers may hold references typed against the original choice.
Handle for this geometry. Can be used to unload the geometry from the GPU.
Represents a geometry that consists of one or more IFC objects