ThreeMfFormatDetector

ThreeMfFormatDetector

Overview

ThreeMfFormatDetector identifies 3MF (.3mf) content by inspecting the opening bytes or file extension of an input stream. It is used internally by Scene.open() to select the correct importer automatically when no explicit format is specified by the caller. The detector examines 3MF (.3mf)-specific file signatures and returns the ThreeMfFormat descriptor on a confirmed match, or yields to other detectors when the content does not conform to the expected 3MF (.3mf) structure.

Description

ThreeMfFormatDetector is a class in the Aspose.3D FOSS library for TypeScript that exposes 1 method and 0 properties for programmatic use. It extends FormatDetector, inheriting shared functionality from its parent type.

Core capabilities include: Creates a new instance of the 3mf format detector. These operations enable developers to integrate threemfformatdetector functionality directly into TypeScript applications.

Instances are created through a single constructor that initializes the object with default values.

Methods

SignatureDescription
constructor()Creates a new instance of the 3MF format detector
detect(stream: any, fileName: string)FileFormat | nullExamines a stream and filename to identify a 3MF format, returning a FileFormat or null

See Also