Skip to main content

TwinfinityIfcMeshExtension

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

Index

Constructors

publicconstructor

Properties

publiccullOnCameraMove

cullOnCameraMove: boolean

publicreadonlycullingDistance

cullingDistance: number

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

publichasOutlinedIfcObjects

hasOutlinedIfcObjects: boolean

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

publicdistanceToCamera

  • distanceToCamera(camera: Camera): number
  • Gets the distance from an mesh to the camera


    Parameters

    • camera: Camera

      Camera to use when checking distance

    Returns number

publichasMaterialsStateChanged

  • hasMaterialsStateChanged(): boolean
  • Returns boolean

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