editor › Globals › IMeshImporter
Interface: IMeshImporter
A wrapper class for a algorithm/library that can import files to meshes.
Hierarchy
- IMeshImporter
Index
Methods
Methods
import
▸ import(file: IBrowserFile): IImportResults
Defined in src/modules/kyub.core.editInBlender/src/IMeshImporter.ts:26
Imports a 3D model defined in a file to its dimensions defined as an ImportedModelDescriptor and its mesh implementations, both serialized. Naturally, will throw an error when the file doesn't describe a closed mesh (will soon be supported), the data format is not supported. We assume that the returned meshes are valid closed models, thus any other internal repairing operations or validation checks can be left out.
see csg server ModelImporter
Parameters:
| Name | Type | Description |
|---|---|---|
file |
IBrowserFile | A FormData object containing the values - file having the blob with given file name |
Returns: IImportResults
the imported, normalized mesh