U3dSaveOptions

U3dSaveOptions

概述

U3dSaveOptions 是 Aspose.3D FOSS 中用于 Java 的一个类。继承自:SaveOptions。

保存通用 3d 的选项。

此类提供 31 个方法,用于在 Java 程序中处理 U3dSaveOptions 对象。可用的方法包括:SaveOptions、U3dSaveOptions、getEmbedTextures、getEncoding、getExportNormals、getExportTextureCoordinates、getExportTextures、getExportVertexDiffuse、getExportVertexSpecular、getFileFormat、getFileName、getFileSystem,以及另外 17 个方法。安装 Aspose.3D FOSS for Java 包后,所有公共成员对任何 Java 应用程序均可访问。属性:embedTextures、encoding、exportNormals、exportTextureCoordinates、exportTextures、exportVertexDiffuse,以及另外 8 项。

属性

名称类型访问描述
flipCoordinateSystemboolean读取获取在导入/导出期间是否翻转控制点/法线的坐标系。
meshCompressionboolean读取获取是否启用网格数据压缩。
exportNormalsboolean读取获取是否导出法线数据。
exportTextureCoordinatesboolean读取获取是否导出纹理坐标。
exportVertexDiffuseboolean读取获取是否导出顶点的漫反射颜色。
exportVertexSpecularboolean读取获取是否导出顶点的镜面颜色。
embedTexturesboolean读取将外部纹理嵌入 U3D 文件,默认值为 false。
exportTexturesboolean读取尝试将场景中使用的纹理复制到输出目录。
fileFormatFileFormat读取获取文件格式。
fileSystemFactoryFileSystemFactory读取获取 FileSystem 的工厂类。
encodingjava.nio.charset.Charset读取获取基于文本的文件的默认编码。
fileSystemFileSystem读取允许用户自行决定在加载/保存期间如何管理外部依赖。
lookupPathsjava.util.ArrayList<String>读取某些文件(如 OBJ)依赖外部文件,查找路径将允许 Aspose.3D 查找并加载外部文件。
fileNameString读取导出/导入场景的文件名。

方法

签名描述
U3dSaveOptions()U3dSaveOptions 的构造函数。
getFlipCoordinateSystem() → boolean获取是否在导入/导出期间翻转控制点/法线的坐标系。
setFlipCoordinateSystem(value: boolean)设置是否在导入/导出期间翻转控制点/法线的坐标系。
getMeshCompression() → boolean获取是否启用网格数据压缩。
setMeshCompression(value: boolean)设置是否启用网格数据压缩。
getExportNormals() → boolean获取是否导出法线数据。
setExportNormals(value: boolean)设置是否导出法线数据。
getExportTextureCoordinates() → boolean获取是否导出纹理坐标。
setExportTextureCoordinates(value: boolean)设置是否导出纹理坐标。
getExportVertexDiffuse() → boolean获取是否导出顶点的漫反射颜色。
setExportVertexDiffuse(value: boolean)设置是否导出顶点的漫反射颜色。
getExportVertexSpecular() → boolean获取是否导出顶点的镜面颜色。
setExportVertexSpecular(value: boolean)设置是否导出顶点的镜面反射颜色。
getEmbedTextures() → boolean将外部纹理嵌入 U3D 文件,默认值为 false。
setEmbedTextures(value: boolean)将外部纹理嵌入 U3D 文件,默认值为 false。
SaveOptions()初始化 SaveOptions 类的新实例。
SaveOptions(format: FileFormat)使用文件格式初始化 SaveOptions 类的新实例。
SaveOptions(contentType: FileContentType)使用文件内容类型初始化 SaveOptions 类的新实例。
getExportTextures() → boolean尝试将场景中使用的纹理复制到输出目录。
setExportTextures(value: boolean)尝试将场景中使用的纹理复制到输出目录。
getFileFormat() → FileFormat返回文件格式。
getFileSystemFactory() → FileSystemFactory获取 FileSystem 的工厂类。
setFileSystemFactory(value: FileSystemFactory)设置 FileSystem 的工厂类。
getEncoding() → java.nio.charset.Charset获取基于文本的文件的默认编码。
setEncoding(value: java.nio.charset.Charset)设置基于文本的文件的默认编码。
getFileSystem() → FileSystem允许用户在加载/保存期间处理外部依赖的管理方式。
setFileSystem(value: FileSystem)允许用户在加载/保存期间处理外部依赖的管理方式。
getLookupPaths() → java.util.ArrayList<String>某些文件(如 OBJ)依赖外部文件,查找路径将允许 Aspose.3D 查找并加载外部文件。
setLookupPaths(value: java.util.ArrayList<String>)某些文件(如 OBJ)依赖外部文件,查找路径将允许 Aspose.3D 查找并加载外部文件。
getFileName() → String导出/导入场景的文件名。
setFileName(value: String)导出/导入场景的文件名。

另请参阅

 中文