ThreeMfFormat

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

NameTypeAccessDescription
extensionstringReadHolds the primary file extension for 3MF format
extensionsstring[]ReadLists all file extensions associated with 3MF
contentTypestringReadContains the MIME type for 3MF files
fileFormatTypeanyReadIdentifies the internal enum value for the 3MF format
versionstringReadIndicates the version string of the 3MF specification supported
canExportbooleanReadIndicates whether exporting to 3MF is supported
canImportbooleanReadIndicates whether importing from 3MF is supported
formatsany[]Read

Methods

SignatureDescription
constructor()
getInstance()ThreeMfFormat
createLoadOptions()ThreeMfLoadOptionsCreates a ThreeMfLoadOptions object for importing 3MF files
createSaveOptions()ThreeMfSaveOptionsCreates a ThreeMfSaveOptions object for exporting 3MF files
isBuildable(node: any)booleanReturns true if the given node can be built into a 3MF object
getTransformForBuild(node: any)any | nullReturns 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)stringRetrieves the model type string of the specified node

See Also