TwinfinityIfcMeshExtension
Index
Constructors
publicconstructor
Constructor
Parameters
_mesh: Mesh
Mesh instance to connect the extension to.
_materials: Materials
Materials instance
geometry3D: Geometry3d
Geometry3dHandle instance representing the geometry which will be applied to
_mesh.
Returns TwinfinityIfcMeshExtension
Properties
publiccullOnCameraMove
publicreadonlycullingDistance
Distance from camera where _mesh will become visibile. If < 0 it is always visible.
publicreadonlyindiceCount
Number of indices this Mesh contains.
publicreadonlyisTransparent
true if this Mesh contains transparent objects
(in which case it cannot contain opaque objects and false if it does)
publicreadonlymetricBoundingRadius
Exact metric bounding-sphere radius (half the diagonal of Geometry3d.aabb), in world
units. Babylon's boundingSphere.radius is in the mesh's LOCAL space — for quantized meshes
that space is the normalized [-1, 1] cube (radius ≈ √3 regardless of real size), and
radiusWorld derives from the local cube × max scale axis, inflating elongated shapes by up
to √3. This value is computed from the metric AABB at build time and has neither problem.
Assumes no scaled ancestor transforms (the IFC pretransform is an axis permutation), which the
pre-quantization culling code already relied on.
publicreadonlyprimitiveCount
Number of vertices, uv's and normals this Mesh contains.
publicreadonlyproductsAndMeshes
All BimIfcObject's and their BimProductMesh'es that makes up the Mesh geometry.'
Methods
publicdispose
Returns void
publicdistanceToCamera
Gets the distance from an mesh to the camera
Parameters
camera: Camera
Camera to use when checking distance
Returns number
publicisVisible
trueif visible from the supplied cameras point of view. Otherwisefalse.Parameters
camera: Camera
Camera to use when checking visibility
optionaldistance: number
Returns boolean
Additional data that decorates Mesh instances with geometry that represents IFC objects.