editor › Globals › AssetLoadingUtils
Class: AssetLoadingUtils
Hierarchy
- AssetLoadingUtils
Index
Methods
Methods
Static parseTransformations
▸ parseTransformations(transformations: any[]): Transforms
Defined in src/model/data/Concepts/MakerAsset/AssetLoadingUtils.ts:21
Parses the transformations as specified in an assetPlate's or externalObject's properties.yml.
Parameters:
| Name | Type | Description |
|---|---|---|
transformations |
any[] | an (ordered) array of transformations defined as follows: - type the transformation type - supported types: - 'translate': translation in the plate-local space - 'rotate': one transformation describing multiple axis-rotations that are applied in x, y, z order (based on OpenSCAD's rotate method) - x the x value of the transformation - y the y value of the transformation - z the z value of the transformation |
Returns: Transforms