@twinfinity/core
    Preparing search index...

    Class TwinfinityIfcMeshExtension

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

    Index

    Constructors

    Properties

    cullingDistance: number

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

    cullOnCameraMove: boolean
    indiceCount: number

    Number of indices this Mesh contains.

    isTransparent: boolean

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

    primitiveCount: number

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

    productsAndMeshes: BimIfcProductsAndMeshes

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

    Methods

    • Returns void

    • Gets the distance from an mesh to the camera

      Parameters

      • camera: Camera

        Camera to use when checking distance

      Returns number

    • 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