DracoSaveOptions
概述
DracoSaveOptions 是 Aspose.3D 开源软件(FOSS)中用于 .NET 的类。继承自:SaveOptions。
Google Draco 文件的保存选项
此类提供 3 种方法,用于在 .NET 程序中处理 DracoSaveOptions 对象。可用的方法包括:DracoSaveOptions、SaveOptions。安装 Aspose.3D 用于 .NET 的开源软件(FOSS)包后,所有公共成员对任何 .NET 应用程序均可访问。属性:ApplyUnitScale、ColorBits、CompressionLevel、Encoding、ExportTextures、FileFormat,以及另外 8 项。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
PositionBits | int | 读写 | 位置的量化位数,默认值为 14 |
TextureCoordinateBits | int | 读写 | 纹理坐标的量化位数,默认值为 12 |
ColorBits | int | 读写 | 顶点颜色的量化位数,默认值为 10 |
NormalBits | int | 读写 | 法线向量的量化位数,默认值为 10 |
CompressionLevel | DracoCompressionLevel | 读写 | 压缩级别,默认值为 |
ApplyUnitScale | bool | 读写 | 将 应用于网格。 |
PointCloud | bool | 读写 | 将场景导出为点云,默认值为 false. |
ExportTextures | bool | 读写 | 尝试将场景中使用的纹理复制到输出目录. |
FileSystemFactory | FileSystemFactory | 读写 | 获取或设置 FileSystem 的工厂类。 |
FileFormat | FileFormat | 读取 | 获取当前保存/加载选项中指定的文件格式。 |
Encoding | Encoding | 读写 | 获取或设置基于文本的文件的默认编码。 |
FileSystem | FileSystem | 读写 | 允许用户处理在加载/保存期间如何管理外部依赖项。 |
LookupPaths | List<string> | 读写 | 某些文件(如 OBJ)依赖外部文件,查找路径将允许 Aspose.3D 查找并加载外部文件。 |
FileName | string | 读写 | 导出/导入场景的文件名。 |
方法
| 签名 | 描述 |
|---|---|
DracoSaveOptions() | 构建用于保存 draco 文件的默认配置。 |
SaveOptions() | 初始化 SaveOptions 类的新实例。 |
SaveOptions(format: FileFormat) | 使用文件格式初始化 SaveOptions 类的新实例。 |