Skip to main content

BimTransformsRepository

Represents a repository for calculating and caching transforms for a IFC file.

Index

Constructors

publicconstructor

Methods

publicclear

  • clear(): void
  • Clears the transforms repository by removing all cached transforms.


    Returns void

publicconvertBimTransformToMatrixToRef

  • convertBimTransformToMatrixToRef(wt: BimTransform, outMatrix: Matrix): Matrix
  • Converts a BimTransform to a Matrix and assigns the result to the provided outMatrix.


    Parameters

    Returns Matrix

    The converted Matrix. Same as outMatrix.

publicgetMatrix

  • Retrieves the matrix associated with the given BimProductMesh. If the matrix is already cached, it is returned directly. Otherwise, the matrix is calculated, cached, and returned.


    Parameters

    • m: BimProductMesh

      The BimProductMesh for which to retrieve the matrix.

    • noCache: boolean = true

      If true, the calculated matrix will be not be cached for future use. Defaults to true. Call clear to remove cached matrices.

    Returns Matrix

    The matrix associated with the given BimProductMesh.

publicgetTransform