StlFormat

Overview

StlFormat is the built-in format handler for STL (.stl) 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 .stl file, it delegates all I/O work to this class internally. The class also provides access to default StlFormatLoadOptions and StlFormatSaveOptions instances that control parsing and serialisation behaviour for every read and write operation.

Properties

NameTypeAccessDescription
extensionstringReadReturns the default file extension for STL format
extensionsstring[]ReadReturns an array of supported STL file extensions
contentTypestringReadStores the MIME type associated with STL files
fileFormatTypeanyReadIdentifies the internal format type for STL
versionstringReadContains the library version string for the STL format support
canExportbooleanReadIs a boolean indicating export capability for STL
canImportbooleanReadIs a boolean indicating import capability for STL
formatsany[]ReadLists available format descriptors related to STL

Methods

SignatureDescription
canImport()booleanIs a boolean indicating import capability for STL
canExport()booleanIs a boolean indicating export capability for STL
extension()stringReturns the default file extension for STL format
extensions()string[]Returns an array of supported STL file extensions
constructor()
getInstance()StlFormat
createLoadOptions()StlLoadOptionsCreates a StlLoadOptions object for importing STL files
createSaveOptions()StlSaveOptionsCreates a StlSaveOptions object for exporting STL files

See Also