@twinfinity/core
    Preparing search index...

    Class BimTransformsRepository

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

    Index

    Constructors

    Methods

    • Clears the transforms repository by removing all cached transforms.

      Returns void

    • Converts a BimTransform to a Matrix and assigns the result to the provided outMatrix.

      Parameters

      Returns Matrix

      The converted Matrix. Same as outMatrix.

    • 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.