StlLoadOptions 类
StlLoadOptions class
STL 的加载选项
public class StlLoadOptions : LoadOptions
构造函数
| 名称 | 描述 |
|---|---|
| StlLoadOptions() | 初始化新的 StlLoadOptions 实例。 |
| StlLoadOptions(FileContentType) | 初始化新的 StlLoadOptions 实例。 |
属性
| 名称 | 描述 |
|---|---|
| Encoding { get; set; } | 获取或设置基于文本文件的默认编码。默认值为 null,这意味着导入器/导出器将决定使用哪种编码。 |
| FileFormat { get; } | 获取当前保存/加载选项中指定的文件格式。 |
| FileName { get; set; } | 导出/导入场景的文件名。这是可选的,但在序列化外部资源(如 OBJ 的材质)时很有用。 |
| FileSystem { get; set; } | 允许用户处理在加载/保存期间如何管理外部依赖项。 |
| LookupPaths { get; set; } | 某些文件(如 OBJ)依赖外部文件,查找路径将允许 Aspose.3D 查找并加载外部文件。 |
| RecalculateNormal { get; set; } | 忽略 STL 文件中存储的法线数据,并根据顶点位置重新计算法线数据。默认值为 false。 |
另请参见
- class LoadOptions
- namespace Aspose.ThreeD.Formats
- assembly Aspose.3D