Class MeshPart
This class represents a mesh asset part.
Namespace: Evergine.Framework.Assets.AssetParts
Assembly: Evergine.Framework.dll
Syntax
public class MeshPart : AssetPart
Fields
MeshPrimitives
The parts of the mesh.
Declaration
public List<MeshPrimitiveContent> MeshPrimitives
Field Value
Type | Description |
---|---|
List<MeshPrimitiveContent> |
Properties
BoundingBox
Gets or sets the bounding box.
Declaration
public BoundingBox? BoundingBox { get; set; }
Property Value
Type | Description |
---|---|
BoundingBox? |
MorphTargetCount
Gets or sets the number of morph targets.
Declaration
public int MorphTargetCount { get; set; }
Property Value
Type | Description |
---|---|
int |
MorphTargetWeights
Gets or sets the default morph target weights.
Declaration
public float[] MorphTargetWeights { get; set; }
Property Value
Type | Description |
---|---|
float[] |
Name
Gets or sets the name.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string | The name. |
Skin
Gets or sets the skin.
Declaration
public int Skin { get; set; }
Property Value
Type | Description |
---|---|
int |
Methods
Read(BinaryReader)
Reads this asset part.
Declaration
public static MeshPart Read(BinaryReader reader)
Parameters
Type | Name | Description |
---|---|---|
BinaryReader | reader | The binary reader. |
Returns
Type | Description |
---|---|
MeshPart | The mesh part. |
RefreshBoundingBox()
Refreshes the mesh bounding box.
Declaration
public void RefreshBoundingBox()
Write(BinaryWriter)
Writes the sub-asset.
Declaration
public override void Write(BinaryWriter writer)
Parameters
Type | Name | Description |
---|---|---|
BinaryWriter | writer | The stream. |