Overview
ThreeMfFormat is the built-in format handler for 3MF (.3mf) files in Aspose.3D for TypeScript. It inherits from FileFormat and exposes factory methods that create the detector, importer, and exporter for this format. When a Scene loads or saves a .3mf file, it delegates all I/O work to this class internally. The class also provides access to default ThreeMfFormatLoadOptions and ThreeMfFormatSaveOptions instances that control parsing and serialisation behaviour for every read and write operation.
Properties
| Name | Type | Access | Description |
|---|
extension | string | Read | Holds the primary file extension for 3MF format |
extensions | string[] | Read | Lists all file extensions associated with 3MF |
contentType | string | Read | Contains the MIME type for 3MF files |
fileFormatType | any | Read | Identifies the internal enum value for the 3MF format |
version | string | Read | Indicates the version string of the 3MF specification supported |
canExport | boolean | Read | Indicates whether exporting to 3MF is supported |
canImport | boolean | Read | Indicates whether importing from 3MF is supported |
formats | any[] | Read | |
Methods
| Signature | Description |
|---|
constructor() | |
getInstance() → ThreeMfFormat | |
createLoadOptions() → ThreeMfLoadOptions | Creates a ThreeMfLoadOptions object for importing 3MF files |
createSaveOptions() → ThreeMfSaveOptions | Creates a ThreeMfSaveOptions object for exporting 3MF files |
isBuildable(node: any) → boolean | Returns true if the given node can be built into a 3MF object |
getTransformForBuild(node: any) → any | null | Returns the transform applied when building the node, or null |
setBuildable(node: any, value: boolean, transform: any) | Marks the node as buildable and optionally assigns a transform |
setObjectType(node: any, modelType: string) | Assigns a model type string to the specified node |
getObjectType(node: any) → string | Retrieves the model type string of the specified node |
See Also