IModelWriterCmh

Description

interface Tinman.Engine.Models.IModelWriterCmh

Derived from

IModelWriter

Represents the background operation that writes a 3D model file using the ModelFormat.CMH format.

The following file format versions may be used for VersionMaximum and VersionMinimum:

The model writer chooses the lowest file format version between VersionMinimum and VersionMaximum that is capable of encoding the given IModel object. If the required file format version is not included in the allowed range, a ValidatingException will be thrown when the operation is run. To catch validation errors up-front, use the IValidatable.Validate method. The ModelFlagsAnd and ModelFlagsOr properties can be used to modify the IModel.Flags value of the input model (including its descendants). First, the intersection of the model flags of the input model (see IModel.Flags) and the flags of ModelFlagsAnd is computed. Then, the union of the resulting flags and ModelFlagsOr is computed. The final flags are used to write the CMH model file, while the original IModel.Flags values are preserved.

Public / Attributes

Model​Flags​And


public attribute ModelFlagsAnd → (get,set)

value : ModelFlags

The model flag mask to use.

Controls the IModel.Flags values of the written model.

Defaults to ModelFlags.All, i.e. all model flags are retained.

Model​Flags​Or


public attribute ModelFlagsOr → (get,set)

value : ModelFlags

The model flag mask to use.

Controls the IModel.Flags values of the written model.

Defaults to ModelFlags.None, i.e. no model flags are added.

Version​Maximum


public attribute VersionMaximum → (get,set)

value : int32

The maximum file format version to write. Will be clamped to the range of defined version numbers.

The maximum file format version to use for writing the model file.

Defaults to Maths.MaxInt.

Version​Minimum


public attribute VersionMinimum → (get,set)

value : int32

The minimum file format version to write. Will be clamped to the range of defined version numbers.

The minimum file format version to use for writing the model file.

Defaults to 1.