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.
publichasOutlinedIfcObjects
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)
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
publicdistanceToCamera
Gets the distance from an mesh to the camera
Parameters
camera: Camera
Camera to use when checking distance
Returns number
publichasMaterialsStateChanged
Returns boolean
publicisVisible
true
if 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.