Class SkinnedMesh
Immutable bind-pose geometry deformed by a skeleton.
Inherited Members
Namespace: Simple3D.Core
Assembly: Simple3D.Core.dll
Syntax
public sealed class SkinnedMesh
Constructors
| Edit this page View SourceSkinnedMesh(Mesh, Skeleton, IEnumerable<VertexInfluence>, IEnumerable<MorphTarget>?)
Validates one influence per vertex: joint indices inside the skeleton and a positive weight sum. Morph targets, if any, need one offset per vertex.
Declaration
public SkinnedMesh(Mesh mesh, Skeleton skeleton, IEnumerable<VertexInfluence> influences, IEnumerable<MorphTarget>? morphTargets = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Mesh | mesh | |
| Skeleton | skeleton | |
| IEnumerable<VertexInfluence> | influences | |
| IEnumerable<MorphTarget> | morphTargets |
Fields
| Edit this page View SourceMaximumMorphTargets
Maximum number of morph targets per mesh.
Declaration
public const int MaximumMorphTargets = 64
Field Value
| Type | Description |
|---|---|
| int |
Properties
| Edit this page View SourceInfluences
One influence per mesh vertex.
Declaration
public IReadOnlyList<VertexInfluence> Influences { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<VertexInfluence> |
Mesh
Geometry in its bind pose.
Declaration
public Mesh Mesh { get; }
Property Value
| Type | Description |
|---|---|
| Mesh |
MorphTargets
Blend shapes applied before skinning; empty when the mesh has none.
Declaration
public IReadOnlyList<MorphTarget> MorphTargets { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<MorphTarget> |
Skeleton
The skeleton that deforms the mesh.
Declaration
public Skeleton Skeleton { get; }
Property Value
| Type | Description |
|---|---|
| Skeleton |