ThreeMfFormatDetector

ThreeMfFormatDetector

概述

ThreeMfFormatDetector 通过检查输入流的起始字节或文件扩展名来识别 3MF (.3mf) 内容。它在 Scene.open() 内部使用,以在调用方未明确指定格式时自动选择正确的导入器。检测器检查特定于 3MF (.3mf) 的文件签名,在确认匹配时返回 ThreeMfFormat 描述符;如果内容不符合预期的 3MF (.3mf) 结构,则交由其他检测器处理。

描述

ThreeMfFormatDetector 是 Aspose.3D FOSS 库中用于 TypeScript 的一个类,向编程使用公开了 1 个方法和 0 个属性。它扩展自 FormatDetector,继承了父类型的共享功能。

核心功能包括:创建 3mf 格式检测器的新实例。这些操作使开发者能够将 threemfformatdetector 功能直接集成到 TypeScript 应用程序中。

实例通过单一构造函数创建,该构造函数使用默认值初始化对象。

方法

签名描述
constructor()创建一个新的 3MF 格式检测器实例
detect(stream: any, fileName: string) → `FileFormatnull`

另请参阅

 中文