Table of Contents

Class CMOReader

Namespace
HelixToolkit.SharpDX
Assembly
HelixToolkit.SharpDX.dll
public class CMOReader : IModelReader
Inheritance
CMOReader
Implements
Inherited Members

Fields

AnimationHierarchy

The animation hirarchy

public readonly List<AnimationHierarchy> AnimationHierarchy

Field Value

List<AnimationHierarchy>

MaxBoneInfluences

public const int MaxBoneInfluences = 4

Field Value

int

MaxTextures

public const int MaxTextures = 8

Field Value

int

Meshes

public readonly List<Object3D> Meshes

Field Value

List<Object3D>

UniqueAnimations

The unique animations by animation name and corresponding animations by their guid

public readonly Dictionary<string, List<Guid>> UniqueAnimations

Field Value

Dictionary<string, List<Guid>>

Properties

ModelInfo

Additional info how to treat the model

public ModelInfo ModelInfo { get; }

Property Value

ModelInfo

TexturePath

Gets or sets the path to the textures.

public string TexturePath { get; set; }

Property Value

string

The texture path.

Methods

Read(Stream, ModelInfo)

Reads the model from the specified stream.

public List<Object3D>? Read(Stream s, ModelInfo info = default)

Parameters

s Stream

The stream.

info ModelInfo

The model info.

Returns

List<Object3D>

The model.

Read(string, ModelInfo)

Reads the model from the specified path.

public List<Object3D>? Read(string path, ModelInfo info = default)

Parameters

path string

The path.

info ModelInfo

The model info.

Returns

List<Object3D>

The model.