U3dSaveOptions
概述
U3dSaveOptions 是 Aspose.3D FOSS 中用于 .NET 的类。继承自:SaveOptions。
保存通用 3d 选项
此类提供 3 种方法来处理 .NET 程序中的 U3dSaveOptions 对象。可用的方法包括:SaveOptions、U3dSaveOptions。在安装了 Aspose.3D 用于 .NET 的 FOSS 包后,所有公共成员对任何 .NET 应用程序均可访问。属性:EmbedTextures、Encoding、ExportNormals、ExportTextureCoordinates、ExportTextures、ExportVertexDiffuse,以及另外 8 项。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
FlipCoordinateSystem | bool | 读写 | 获取或设置在导入/导出期间是否翻转控制点/法线的坐标系。 |
MeshCompression | bool | 读写 | 获取或设置是否启用网格数据压缩。 |
ExportNormals | bool | 读写 | 获取或设置是否导出法线数据。 |
ExportTextureCoordinates | bool | 读写 | 获取或设置是否导出纹理坐标。 |
ExportVertexDiffuse | bool | 读写 | 获取或设置是否导出顶点的漫反射颜色。 |
ExportVertexSpecular | bool | 读写 | 获取或设置是否导出顶点的高光颜色。 |
EmbedTextures | bool | 读写 | 将外部纹理嵌入 U3D 文件,默认值为 false。 |
ExportTextures | bool | 读写 | 尝试将场景中使用的纹理复制到输出目录。 |
FileSystemFactory | FileSystemFactory | 读写 | 获取或设置 FileSystem 的工厂类。 |
FileFormat | FileFormat | 读取 | 获取当前保存/加载选项中指定的文件格式。 |
Encoding | Encoding | 读写 | 获取或设置基于文本的文件的默认编码。 |
FileSystem | FileSystem | 读写 | 允许用户处理在加载/保存期间如何管理外部依赖。 |
LookupPaths | List<string> | 读写 | 某些文件(如 OBJ)依赖外部文件,查找路径将允许 Aspose.3D 查找并加载外部文件。 |
FileName | string | 读写 | 导出/导入场景的文件名。 |
方法
| 签名 | 描述 |
|---|---|
U3dSaveOptions() | 构造函数 |
SaveOptions() | 初始化 SaveOptions 类的新实例。 |
SaveOptions(format: FileFormat) | 使用文件格式初始化 SaveOptions 类的新实例。 |