DracoSaveOptions

Inheritance: java.lang.Object, com.aspose.threed.IOConfig, com.aspose.threed.SaveOptions

public class DracoSaveOptions extends SaveOptions

Save options for Google draco files

Constructors

ConstructorDescription
DracoSaveOptions()Construct a default configuration for saving draco files.

Methods

MethodDescription
equals(Object arg0)
getApplyUnitScale()Apply AssetInfo.getUnitScaleFactor to the mesh.
getClass()
getColorBits()Quantization bits for vertex color, default value is 10
getCompressionLevel()Compression level, default value is DracoCompressionLevel.STANDARD
getEncoding()Gets the default encoding for text-based files.
getExportTextures()Try to copy textures used in scene to output directory.
getFileFormat()Gets the file format that specified in current Save/Load option.
getFileName()The file name of the exporting/importing scene.
getFileSystem()Allow user to handle how to manage the external dependencies during load/save.
getFileSystemFactory()Gets the factory class for FileSystem.
getLookupPaths()Some files like OBJ depends on external file, the lookup paths will allows Aspose.3D to look for external file to load.
getNormalBits()Quantization bits for normal vectors, default value is 10
getPointCloud()Export the scene as point cloud, default value is false.
getPositionBits()Quantization bits for position, default value is 14
getTextureCoordinateBits()Quantization bits for texture coordinate, default value is 12
hashCode()
notify()
notifyAll()
setApplyUnitScale(boolean value)Apply AssetInfo.getUnitScaleFactor to the mesh.
setColorBits(int value)Quantization bits for vertex color, default value is 10
setCompressionLevel(DracoCompressionLevel value)Compression level, default value is DracoCompressionLevel.STANDARD
setEncoding(Charset value)Sets the default encoding for text-based files.
setExportTextures(boolean value)Try to copy textures used in scene to output directory.
setFileName(String value)The file name of the exporting/importing scene.
setFileSystem(FileSystem value)Allow user to handle how to manage the external dependencies during load/save.
setFileSystemFactory(FileSystemFactory value)Sets the factory class for FileSystem.
setLookupPaths(ArrayList value)Some files like OBJ depends on external file, the lookup paths will allows Aspose.3D to look for external file to load.
setNormalBits(int value)Quantization bits for normal vectors, default value is 10
setPointCloud(boolean value)Export the scene as point cloud, default value is false.
setPositionBits(int value)Quantization bits for position, default value is 14
setTextureCoordinateBits(int value)Quantization bits for texture coordinate, default value is 12
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

DracoSaveOptions()

public DracoSaveOptions()

Construct a default configuration for saving draco files.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getApplyUnitScale()

public boolean getApplyUnitScale()

Apply AssetInfo.getUnitScaleFactor to the mesh. Default value is false.

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getColorBits()

public int getColorBits()

Quantization bits for vertex color, default value is 10

Returns: int

getCompressionLevel()

public DracoCompressionLevel getCompressionLevel()

Compression level, default value is DracoCompressionLevel.STANDARD

Returns: DracoCompressionLevel

getEncoding()

public Charset getEncoding()

Gets the default encoding for text-based files. Default value is null which means the importer/exporter will decide which encoding to use.

Returns: java.nio.charset.Charset

getExportTextures()

public boolean getExportTextures()

Try to copy textures used in scene to output directory.

Returns: boolean

getFileFormat()

public FileFormat getFileFormat()

Gets the file format that specified in current Save/Load option.

Returns: FileFormat

getFileName()

public String getFileName()

The file name of the exporting/importing scene. This is optional, but useful when serialize external assets like OBJ’s material.

Returns: java.lang.String

getFileSystem()

public FileSystem getFileSystem()

Allow user to handle how to manage the external dependencies during load/save.

Returns: FileSystem

getFileSystemFactory()

public static FileSystemFactory getFileSystemFactory()

Gets the factory class for FileSystem. The default factory will create LocalFileSystem which is not suitable for server environment.

Returns: FileSystemFactory

getLookupPaths()

public ArrayList<String> getLookupPaths()

Some files like OBJ depends on external file, the lookup paths will allows Aspose.3D to look for external file to load.

Returns: java.util.ArrayList<java.lang.String>

getNormalBits()

public int getNormalBits()

Quantization bits for normal vectors, default value is 10

Returns: int

getPointCloud()

public boolean getPointCloud()

Export the scene as point cloud, default value is false.

Returns: boolean

getPositionBits()

public int getPositionBits()

Quantization bits for position, default value is 14

Returns: int

getTextureCoordinateBits()

public int getTextureCoordinateBits()

Quantization bits for texture coordinate, default value is 12

Returns: int

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setApplyUnitScale(boolean value)

public void setApplyUnitScale(boolean value)

Apply AssetInfo.getUnitScaleFactor to the mesh. Default value is false.

Parameters:

ParameterTypeDescription
valuebooleanNew value

setColorBits(int value)

public void setColorBits(int value)

Quantization bits for vertex color, default value is 10

Parameters:

ParameterTypeDescription
valueintNew value

setCompressionLevel(DracoCompressionLevel value)

public void setCompressionLevel(DracoCompressionLevel value)

Compression level, default value is DracoCompressionLevel.STANDARD

Parameters:

ParameterTypeDescription
valueDracoCompressionLevelNew value

setEncoding(Charset value)

public void setEncoding(Charset value)

Sets the default encoding for text-based files. Default value is null which means the importer/exporter will decide which encoding to use.

Parameters:

ParameterTypeDescription
valuejava.nio.charset.CharsetNew value

setExportTextures(boolean value)

public void setExportTextures(boolean value)

Try to copy textures used in scene to output directory.

Parameters:

ParameterTypeDescription
valuebooleanNew value

setFileName(String value)

public void setFileName(String value)

The file name of the exporting/importing scene. This is optional, but useful when serialize external assets like OBJ’s material.

Parameters:

ParameterTypeDescription
valuejava.lang.StringNew value

setFileSystem(FileSystem value)

public void setFileSystem(FileSystem value)

Allow user to handle how to manage the external dependencies during load/save.

Parameters:

ParameterTypeDescription
valueFileSystemNew value

setFileSystemFactory(FileSystemFactory value)

public static void setFileSystemFactory(FileSystemFactory value)

Sets the factory class for FileSystem. The default factory will create LocalFileSystem which is not suitable for server environment.

Parameters:

ParameterTypeDescription
valueFileSystemFactoryNew value

setLookupPaths(ArrayList value)

public void setLookupPaths(ArrayList<String> value)

Some files like OBJ depends on external file, the lookup paths will allows Aspose.3D to look for external file to load.

Parameters:

ParameterTypeDescription
valuejava.util.ArrayList<java.lang.String>New value

setNormalBits(int value)

public void setNormalBits(int value)

Quantization bits for normal vectors, default value is 10

Parameters:

ParameterTypeDescription
valueintNew value

setPointCloud(boolean value)

public void setPointCloud(boolean value)

Export the scene as point cloud, default value is false.

Parameters:

ParameterTypeDescription
valuebooleanNew value

setPositionBits(int value)

public void setPositionBits(int value)

Quantization bits for position, default value is 14

Parameters:

ParameterTypeDescription
valueintNew value

setTextureCoordinateBits(int value)

public void setTextureCoordinateBits(int value)

Quantization bits for texture coordinate, default value is 12

Parameters:

ParameterTypeDescription
valueintNew value

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int