Class MeshDeformation
The mesh deformation utility for editing or morphing models dynamically at runtime (eg. via Blend Shapes or Cloth).
Inheritance
MeshDeformation
Assembly: FlaxEngine.dll
File: Engine/Graphics/Models/MeshDeformation.h
Syntax
public class MeshDeformation
Constructors
~MeshDeformation()
Declaration
public ~MeshDeformation()
Methods
AddDeformer(int32 lodIndex, int32 meshIndex, MeshBufferType type, const Function<void(const MeshBase* mesh, MeshDeformationData& deformation)>& deformer)
Declaration
public void AddDeformer(int32 lodIndex, int32 meshIndex, MeshBufferType type, const Function<void(const MeshBase* mesh, MeshDeformationData& deformation)>& deformer)
Parameters
int32
lodIndex
|
int32
meshIndex
|
MeshBufferType
type
|
Function<void(MeshBase mesh, MeshDeformationDatadeformation)>
deformer
|
Clear()
Declaration
public void Clear()
Dirty()
Declaration
public void Dirty()
Dirty(int32 lodIndex, int32 meshIndex, MeshBufferType type)
Declaration
public void Dirty(int32 lodIndex, int32 meshIndex, MeshBufferType type)
Parameters
int32
lodIndex
|
int32
meshIndex
|
MeshBufferType
type
|
Dirty(int32 lodIndex, int32 meshIndex, MeshBufferType type, const BoundingBox& bounds)
Declaration
public void Dirty(int32 lodIndex, int32 meshIndex, MeshBufferType type, const BoundingBox& bounds)
Parameters
int32
lodIndex
|
int32
meshIndex
|
MeshBufferType
type
|
BoundingBox
bounds
|
GetBounds(int32 lodIndex, int32 meshIndex, BoundingBox& bounds)
Declaration
public void GetBounds(int32 lodIndex, int32 meshIndex, BoundingBox& bounds) const
Parameters
int32
lodIndex
|
int32
meshIndex
|
BoundingBox
bounds
|
RemoveDeformer(int32 lodIndex, int32 meshIndex, MeshBufferType type, const Function<void(const MeshBase* mesh, MeshDeformationData& deformation)>& deformer)
Declaration
public void RemoveDeformer(int32 lodIndex, int32 meshIndex, MeshBufferType type, const Function<void(const MeshBase* mesh, MeshDeformationData& deformation)>& deformer)
Parameters
int32
lodIndex
|
int32
meshIndex
|
MeshBufferType
type
|
Function<void(MeshBase mesh, MeshDeformationDatadeformation)>
deformer
|
RunDeformers(const MeshBase* mesh, MeshBufferType type, GPUBuffer*& vertexBuffer)
Declaration
public void RunDeformers(const MeshBase* mesh, MeshBufferType type, GPUBuffer*& vertexBuffer)
Parameters
MeshBase
mesh
|
MeshBufferType
type
|
GPUBuffer
vertexBuffer
|