Optional ReadonlycenterReadonlycolorReadonlycullingDetermine at what distance from the camera this mesh should be hidden.
If < 0 then mesh is never hidden. If >= 0 then mesh is hidden when distance to camera is greater than this value.
If true then mesh is written to the depth buffer even if it is not visible
ReadonlydescriptorMesh descriptor
Optional ReadonlyedgesCached feature edges in world space, populated by getEdges.
Enable/disable the 'ghost outline'. Alias for setting visible =false and
depthWriteIgnoresVisibility = true.
Requires that lineshading is enabled. Otherwise the object will simply not be visible.
Set the different highlight indexes (or indices, both plurals are fine) of the product mesh.
If any index but Empty is set then the product mesh will be colored to the corresponding highlight color.
You can change the colors of the highlights by calling the API method
ReadonlyifcParent IFC mesh belongs to.
ReadonlyifcParent BimIfcObject the mesh belongs to.
If set to true, this mesh will ignore clip plane culling, if not it will behave normally (it will be culled by clip planes)
ReadonlyindexReadonlyisIf true then the mesh has been transferred to the gpu, otherwise false.
ReadonlyloaderParent loader element.
ReadonlymergeDetermine which babylonjs mesh this ifc product mesh shall belong to.
ReadonlymiIf true then mesh is displayed with an outline, otherwise false. For the outline to actually show,
the postprocess effect for outlines needs to be created, which is created by calling createOutlinePipeline from PostProcessEffects
So for example you could do like this:
```typescript`
for (let product of this._api.ifc.products()) { for (let productMesh of product.productMeshes) { if (Math.random() > 0.95) { productMesh.outline = true; } } }
api.camera.attachBehavior(PostProcessEffects.createOutlinePipeline(true)); `` Note that like any other post process, the order you attach them to the camera is the same order the post processes are rendered
ReadonlyrReadonlysiReadonlystyleIfc style used by mesh
ReadonlyvertexReadonlyvertexVertex data.
If true then mesh is visible, otherwise false.
ReadonlywtCalculate aabb min and max value of mesh.
minimum bounding vector3.
maximum bounding vector3
OptionalnoCache: booleanWhether to clear the transform cache after calculation or not. Set to false when calculating
aabb for many meshes at the same time for better performance. Set to true for last mesh to ensure that the cache is cleared.
Defaults to true.
Calculate aabb BoundingInfo of the mesh.
OptionalbI: BoundingInfoOptional BoundingInfo if specified it will be 'extended' with the aabb of this mesh. Makes it simple to calculate
a compound aabb for many meshes. Simply use the BoundingInfo from the first call to boundingInfo in all the subsequent calls
to boundingInfo the other meshes. The end result will be a compound BoundingInfo for all the meshes.
OptionalnoCache: booleanWhether to clear the transform cache after calculation or not. Set to false when calculating
aabb for many meshes at the same time for better performance. Set to true for last mesh to ensure that the cache is cleared.
Defaults to true.
BoundingInfo representing the aabb. If bI was specifie as argument then that instance is returned.
Copy the RGBA color of the mesh into dst. Each component is 0..255.
Must be at least 4 elements.
Buffer to write color to. Must have length in multiples of 4.
OptionaldstOffset: numberOffset in dst. Must be specified in multiples of 4. Do
not set so writes to dst end up outside length of dst.
Resets back to the default color of the mesh.
true if colors changes needed to be made.
Calculate FastTransform for mesh.
OptionalnoCache: booleanWhether to clear the transform cache after calculation or not. Set to false when calculating
FastTransform transform for many meshes at the same time for better performance. Set to true for last mesh to ensure that the cache is cleared.
or call BimTransformsRepository.clear on loaderElement afterwards.
Defaults to true.
Get specific color component. Output is in range 0..255.
Color component.
Lazy-load edges for this mesh. On first call, extracts unique edges from vertex data and caches the result. Subsequent calls return the cached edges immediately.
Edges are returned in world space as [start, end] pairs.
Gets a BimIfcMesh instance that can be used to do intersection testing and other (computationally expensive) operations.
OptionalnoCache: booleanWhether to clear the transform cache after BimIfcMesh creation or not. Set to false when creating
many BimIfcMesh matrix transform for many meshes at the same time for better performance. Set to true for last mesh to ensure that the cache is cleared.
or call BimTransformsRepository.clear on loaderElement afterwards.
Defaults to true.
Set mesh color.
RGBA color. Each component is 0..255.
true if color was changed. Otherwise false.
Calculate Matrix transform for mesh. Gives same wordlspace transform as fastTransform but can be used
with methods that do not accept FastTransform.
OptionalnoCache: booleanWhether to clear the transform cache after calculation or not. Set to false when calculating
matrix transform for many meshes at the same time for better performance. Set to true for last mesh to ensure that the cache is cleared.
or call BimTransformsRepository.clear on loaderElement afterwards.
Defaults to true.
Center of the cube, this mesh will be a part of, in IFC space (not worldspace)