Skip to main content

TwinfinityIfcMeshExtension

Additional data that decorates Mesh instances with geometry that represents IFC objects.

Index

Constructors

publicconstructor

Properties

publicreadonlycullingDistance

cullingDistance: number

Distance from camera where _mesh will become visibile. If < 0 it is always visible.

publicreadonlyindiceCount

indiceCount: number

Number of indices this Mesh contains.

publicreadonlyisTransparent

isTransparent: boolean

true if this Mesh contains transparent objects (in which case it cannot contain opaque objects and false if it does)

publicreadonlyprimitiveCount

primitiveCount: number

Number of vertices, uv’s and normals this Mesh contains.

publicreadonlyproductsAndMeshes

productsAndMeshes: BimIfcProductsAndMeshes

All BimIfcObject‘s and their BimProductMesh‘es that makes up the Mesh geometry.’

Methods

publicisVisible

  • isVisible(camera: Camera, distance?: number): boolean
  • true if visible from the supplied cameras point of view. Otherwise false.


    Parameters

    • camera: Camera

      Camera to use when checking visibility

    • optionaldistance: number

    Returns boolean