BimTransformsRepository
Index
Constructors
Methods
Constructors
publicconstructor
Constructs a new instance of the BimTransformsRepository class.
Parameters
_loaderElement: IBimIfcLoaderElement
The IBimIfcLoaderElement used for loading IFC data.
Returns BimTransformsRepository
Methods
publicclear
Clears the transforms repository by removing all cached transforms.
Returns void
publicconvertBimTransformToMatrixToRef
Converts a BimTransform to a Matrix and assigns the result to the provided outMatrix.
Parameters
wt: BimTransform
The BimTransform to convert.
outMatrix: Matrix
The Matrix to assign the converted result to.
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.
Returns Matrix
The matrix associated with the given BimProductMesh.
publicgetTransform
Retrieves the FastTransform for the given BimProductMesh. If the FastTransform is already cached, it is returned directly. Otherwise, a new FastTransform is created, cached, and returned.
Parameters
m: BimProductMesh
The BimProductMesh for which to retrieve the FastTransform.
Returns FastTransform
The FastTransform for the given BimProductMesh.
Represents a repository for calculating and caching transforms for a IFC file.