IModelReader

Description

interface Tinman.Engine.Models.IModelReader

Base interface for classes that read 3D models.

Public / Methods

ReadModel


public method ReadModel → ()

returns → IModel

The read 3D model.

Reads the 3D model using the current options.

When the ReadModel method is called multiple times, the same IModel object will be returned, unless the model reader options have been modified.

After calling ReadModel, the IValidatable.Validate method may be called in order to receive errors and warnings that might have occured while reading the model data.

IOException

If an I/O error has occurred.

ValidatingException

If the model reader has reported an error, for example an unsupported file format feature.

Extensions

WriteCMH


[OwnerReturn] [OwnerThis]
public static method WriteCMH → (1)

filePath in : Path

[not-null]
Path to the output file.

returns → IOperation

The background operation.

Writes the whole model hierarchy to a self-contained CMH file.

See also

ModelFormat.CMH