DracoSaveOptions
Overview
DracoSaveOptions is a class in Aspose.3D FOSS for Java.
Inherits from: SaveOptions.
Options for Draco compression.
This class provides 31 methods for working with DracoSaveOptions objects in Java programs.
Available methods include: DracoSaveOptions, SaveOptions, getApplyUnitScale, getColorBits, getCompressionLevel, getEncoding, getExportTextures, getFileFormat, getFileName, getFileSystem, getFileSystemFactory, getLookupPaths, and 17 additional methods.
All public members are accessible to any Java application after installing the Aspose.3D FOSS for Java package.
Properties: applyUnitScale, colorBits, compressionLevel, encoding, exportTextures, fileFormat, and 8 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
positionBits | int | Read | Quantization bits for position, default value is 14. |
textureCoordinateBits | int | Read | Quantization bits for texture coordinate, default value is 12. |
colorBits | int | Read | Quantization bits for vertex color, default value is 10. |
normalBits | int | Read | Quantization bits for normal vectors, default value is 10. |
compressionLevel | DracoCompressionLevel | Read | Compression level, default value is DracoCompressionLevel.STANDARD. |
applyUnitScale | boolean | Read | Apply AssetInfo.getUnitScaleFactor() to the mesh. |
pointCloud | boolean | Read | Export the scene as point cloud, default value is false. |
exportTextures | boolean | Read | Try to copy textures used in scene to output directory. |
fileFormat | FileFormat | Read | Gets the file format. |
fileSystemFactory | FileSystemFactory | Read | Gets the factory class for FileSystem. |
encoding | java.nio.charset.Charset | Read | Gets the default encoding for text-based files. |
fileSystem | FileSystem | Read | Allow user to handle how to manage the external dependencies during load/save. |
lookupPaths | java.util.ArrayList<String> | Read | Some files like OBJ depends on external file, the lookup paths will allows Aspose.3D to look for external file to load. |
fileName | String | Read | The file name of the exporting/importing scene. |
Methods
| Signature | Description |
|---|---|
DracoSaveOptions() | Constructor of DracoSaveOptions. |
getPositionBits() → int | Quantization bits for position, default value is 14. |
setPositionBits(value: int) | Quantization bits for position, default value is 14. |
getTextureCoordinateBits() → int | Quantization bits for texture coordinate, default value is 12. |
setTextureCoordinateBits(value: int) | Quantization bits for texture coordinate, default value is 12. |
getColorBits() → int | Quantization bits for vertex color, default value is 10. |
setColorBits(value: int) | Quantization bits for vertex color, default value is 10. |
getNormalBits() → int | Quantization bits for normal vectors, default value is 10. |
setNormalBits(value: int) | Quantization bits for normal vectors, default value is 10. |
getCompressionLevel() → DracoCompressionLevel | Compression level, default value is DracoCompressionLevel.STANDARD. |
setCompressionLevel(value: DracoCompressionLevel) | Compression level, default value is DracoCompressionLevel.STANDARD. |
getApplyUnitScale() → boolean | Apply AssetInfo.getUnitScaleFactor() to the mesh. |
setApplyUnitScale(value: boolean) | Apply AssetInfo.getUnitScaleFactor() to the mesh. |
getPointCloud() → boolean | Export the scene as point cloud, default value is false. |
setPointCloud(value: boolean) | Export the scene as point cloud, default value is false. |
SaveOptions() | Initializes a new instance of the SaveOptions class. |
SaveOptions(format: FileFormat) | Initializes a new instance of the SaveOptions class with a file format. |
SaveOptions(contentType: FileContentType) | Initializes a new instance of the SaveOptions class with a file content type. |
getExportTextures() → boolean | Try to copy textures used in scene to output directory. |
setExportTextures(value: boolean) | Try to copy textures used in scene to output directory. |
getFileFormat() → FileFormat | Returns the file format. |
getFileSystemFactory() → FileSystemFactory | Gets the factory class for FileSystem. |
setFileSystemFactory(value: FileSystemFactory) | Sets the factory class for FileSystem. |
getEncoding() → java.nio.charset.Charset | Gets the default encoding for text-based files. |
setEncoding(value: java.nio.charset.Charset) | Sets the default encoding for text-based files. |
getFileSystem() → FileSystem | Allow user to handle how to manage the external dependencies during load/save. |
setFileSystem(value: FileSystem) | Allow user to handle how to manage the external dependencies during load/save. |
getLookupPaths() → java.util.ArrayList<String> | Some files like OBJ depends on external file, the lookup paths will allows Aspose.3D to look for external file to load. |
setLookupPaths(value: java.util.ArrayList<String>) | Some files like OBJ depends on external file, the lookup paths will allows Aspose.3D to look for external file to load. |
getFileName() → String | The file name of the exporting/importing scene. |
setFileName(value: String) | The file name of the exporting/importing scene. |