IModelReader

Description

interface Tinman.Engine.Models.IModelReader

Base interface for classes that read 3D models.

Public / Methods

Read​Model


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 additional errors and warnings that might have occurred while reading the model data.

IOException

If an I/O error has occurred.

ValidatingException

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

Extensions

Write​CMH


[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