Table of Contents

Class BoneSkinnedMeshGeometry3D

Namespace
HelixToolkit.SharpDX
Assembly
HelixToolkit.SharpDX.dll
[Serializable]
public class BoneSkinnedMeshGeometry3D : MeshGeometry3D, INotifyPropertyChanged, IGUID
Inheritance
BoneSkinnedMeshGeometry3D
Implements
Inherited Members
Extension Methods

Constructors

BoneSkinnedMeshGeometry3D()

public BoneSkinnedMeshGeometry3D()

BoneSkinnedMeshGeometry3D(MeshGeometry3D)

public BoneSkinnedMeshGeometry3D(MeshGeometry3D mesh)

Parameters

mesh MeshGeometry3D

Properties

VertexBoneIds

Gets or sets the vertex bone ids and bone weights.

public IList<BoneIds>? VertexBoneIds { get; set; }

Property Value

IList<BoneIds>

The vertex bone ids.

Methods

CreateNodeBasedBoneMatrices(IList<Bone>, ref Matrix4x4)

Creates the node based bone matrices.

public static Matrix4x4[]? CreateNodeBasedBoneMatrices(IList<Bone> bones, ref Matrix4x4 rootInvTransform)

Parameters

bones IList<Bone>

The bones.

rootInvTransform Matrix4x4

The root inv transform.

Returns

Matrix4x4[]

CreateNodeBasedBoneMatrices(IList<Bone>, ref Matrix4x4, ref Matrix4x4[]?)

Creates the node based bone matrices.

public static void CreateNodeBasedBoneMatrices(IList<Bone> bones, ref Matrix4x4 rootInvTransform, ref Matrix4x4[]? matrices)

Parameters

bones IList<Bone>

The bones.

rootInvTransform Matrix4x4
matrices Matrix4x4[]

CreateSkeletonMesh(IList<Bone>?, float)

public static BoneSkinnedMeshGeometry3D? CreateSkeletonMesh(IList<Bone>? bones, float scale = 1)

Parameters

bones IList<Bone>
scale float

Returns

BoneSkinnedMeshGeometry3D

HitTestWithSkinnedVertices(HitTestContext?, Vector3[], Matrix4x4, ref List<HitTestResult>, object?)

public virtual bool HitTestWithSkinnedVertices(HitTestContext? context, Vector3[] skinnedVertices, Matrix4x4 modelMatrix, ref List<HitTestResult> hits, object? originalSource)

Parameters

context HitTestContext
skinnedVertices Vector3[]
modelMatrix Matrix4x4
hits List<HitTestResult>
originalSource object

Returns

bool