Package com.aspose.threed
Class FbxSaveOptions
- java.lang.Object
-
- com.aspose.threed.IOConfig
-
- com.aspose.threed.SaveOptions
-
- com.aspose.threed.FbxSaveOptions
-
public class FbxSaveOptions extends SaveOptions
Save options for Fbx file.
-
-
Constructor Summary
Constructors Constructor Description FbxSaveOptions(FileContentType contentType)
Initialize aFbxSaveOptions
using latest supported version.FbxSaveOptions(FileFormat format)
Initializes aFbxSaveOptions
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getEmbedTextures()
Gets whether to embed the texture to the final output file.boolean
getEnableCompression()
Compression large binary data in the FBX file(e.g.boolean
getExportLegacyMaterialProperties()
Gets whether export legacy material properties, used for back compatibility.java.lang.Boolean
getFoldRepeatedCurveData()
Gets whether reuse repeated curve data by increasing last data's ref countboolean
getGenerateVertexElementMaterial()
Gets whether always generate aVertexElementMaterial
for geometries if the attached node contains materials.boolean
getReusePrimitiveMesh()
Reuse the mesh for the primitives with same parameters, this will significantly reduce the size of FBX output which scene was constructed by large set of primitive shapes(like imported from CAD files).boolean
getVideoForTexture()
Gets whether generate a Video instance forTexture
when exporting as FBX.void
setEmbedTextures(boolean value)
Sets whether to embed the texture to the final output file.void
setEnableCompression(boolean value)
Compression large binary data in the FBX file(e.g.void
setExportLegacyMaterialProperties(boolean value)
Sets whether export legacy material properties, used for back compatibility.void
setFoldRepeatedCurveData(java.lang.Boolean value)
Sets whether reuse repeated curve data by increasing last data's ref countvoid
setGenerateVertexElementMaterial(boolean value)
Sets whether always generate aVertexElementMaterial
for geometries if the attached node contains materials.void
setReusePrimitiveMesh(boolean value)
Reuse the mesh for the primitives with same parameters, this will significantly reduce the size of FBX output which scene was constructed by large set of primitive shapes(like imported from CAD files).void
setVideoForTexture(boolean value)
Sets whether generate a Video instance forTexture
when exporting as FBX.-
Methods inherited from class com.aspose.threed.IOConfig
getEncoding, getFileFormat, getFileName, getFileSystem, getFileSystemFactory, getLookupPaths, lookupForFile, setEncoding, setFileName, setFileSystem, setFileSystemFactory, setLookupPaths
-
-
-
-
Constructor Detail
-
FbxSaveOptions
public FbxSaveOptions(FileFormat format)
Initializes aFbxSaveOptions
- Parameters:
format
-
-
FbxSaveOptions
public FbxSaveOptions(FileContentType contentType)
Initialize aFbxSaveOptions
using latest supported version.- Parameters:
contentType
-
-
-
Method Detail
-
getReusePrimitiveMesh
public boolean getReusePrimitiveMesh()
Reuse the mesh for the primitives with same parameters, this will significantly reduce the size of FBX output which scene was constructed by large set of primitive shapes(like imported from CAD files). Default value is false
-
setReusePrimitiveMesh
public void setReusePrimitiveMesh(boolean value)
Reuse the mesh for the primitives with same parameters, this will significantly reduce the size of FBX output which scene was constructed by large set of primitive shapes(like imported from CAD files). Default value is false- Parameters:
value
- New value
-
getEnableCompression
public boolean getEnableCompression()
Compression large binary data in the FBX file(e.g. animation data, control points, vertex element data, indices), default value is true.
-
setEnableCompression
public void setEnableCompression(boolean value)
Compression large binary data in the FBX file(e.g. animation data, control points, vertex element data, indices), default value is true.- Parameters:
value
- New value
-
getFoldRepeatedCurveData
public java.lang.Boolean getFoldRepeatedCurveData()
Gets whether reuse repeated curve data by increasing last data's ref count
-
setFoldRepeatedCurveData
public void setFoldRepeatedCurveData(java.lang.Boolean value)
Sets whether reuse repeated curve data by increasing last data's ref count- Parameters:
value
- New value
-
getExportLegacyMaterialProperties
public boolean getExportLegacyMaterialProperties()
Gets whether export legacy material properties, used for back compatibility. This option is turned on by default.
-
setExportLegacyMaterialProperties
public void setExportLegacyMaterialProperties(boolean value)
Sets whether export legacy material properties, used for back compatibility. This option is turned on by default.- Parameters:
value
- New value
-
getVideoForTexture
public boolean getVideoForTexture()
Gets whether generate a Video instance forTexture
when exporting as FBX.
-
setVideoForTexture
public void setVideoForTexture(boolean value)
Sets whether generate a Video instance forTexture
when exporting as FBX.- Parameters:
value
- New value
-
getEmbedTextures
public boolean getEmbedTextures()
Gets whether to embed the texture to the final output file. FBX Exporter will try to find the texture's raw data fromIOConfig.getFileSystem()
, and embed the file to final FBX file. Default value is false.
-
setEmbedTextures
public void setEmbedTextures(boolean value)
Sets whether to embed the texture to the final output file. FBX Exporter will try to find the texture's raw data fromIOConfig.getFileSystem()
, and embed the file to final FBX file. Default value is false.- Parameters:
value
- New value
-
getGenerateVertexElementMaterial
public boolean getGenerateVertexElementMaterial()
Gets whether always generate aVertexElementMaterial
for geometries if the attached node contains materials. This is turned off by default.
-
setGenerateVertexElementMaterial
public void setGenerateVertexElementMaterial(boolean value)
Sets whether always generate aVertexElementMaterial
for geometries if the attached node contains materials. This is turned off by default.- Parameters:
value
- New value
-
-