Class Deformation
A deformation is a continuous, differentable mapping from one space to another.
It is used to warp meshes in arbitrary ways, by mapping the vertices, normals and tangents of the mesh.
Inheritance
System.Object
Deformation
Assembly: Sylves.dll
public class Deformation : Object
Constructors
Declaration
public Deformation(Func<Vector3, Vector3> deformPoint, Deformation.GetJacobiFunc getJacobi, bool invertWinding)
Parameters
Declaration
public Deformation(Func<Vector3, Vector3> deformPoint, Func<Vector3, Vector3, Vector3> deformNormal, Func<Vector3, Vector4, Vector4> deformTangent, Deformation.GetJacobiFunc getJacobi, bool invertWinding)
Parameters
Declaration
public Deformation(Func<Vector3, Vector3> deformPoint, float step = 0.001F, bool invertWinding = false)
Parameters
Type |
Name |
Description |
System.Func<Vector3, Vector3> |
deformPoint |
|
System.Single |
step |
|
System.Boolean |
invertWinding |
|
Fields
Declaration
public static Deformation Identity
Field Value
PostDeform
Declaration
public Matrix4x4 PostDeform
Field Value
PostDeformIT
Declaration
public Matrix4x4 PostDeformIT
Field Value
Declaration
public Matrix4x4 PreDeform
Field Value
Declaration
public Matrix4x4 PreDeformIT
Field Value
Properties
Declaration
public Func<Vector3, Vector3, Vector3> InnerDeformNormal { get; set; }
Property Value
Declaration
public Func<Vector3, Vector3> InnerDeformPoint { get; set; }
Property Value
Declaration
public Func<Vector3, Vector4, Vector4> InnerDeformTangent { get; set; }
Property Value
Declaration
public Deformation.GetJacobiFunc InnerGetJacobi { get; set; }
Property Value
Declaration
public bool InnerInvertWinding { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool InvertWinding { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
Declaration
public Deformation Clone()
Returns
Declaration
public Vector3 DeformNormal(Vector3 p, Vector3 v)
Parameters
Returns
Declaration
public Vector3 DeformPoint(Vector3 p)
Parameters
Returns
Declaration
public Vector4 DeformTangent(Vector3 p, Vector4 t)
Parameters
Returns
Declaration
public Matrix4x4 GetJacobi(Vector3 p)
Parameters
Returns
Declaration
public void GetJacobi(Vector3 p, out Matrix4x4 j)
Parameters
Operators
Declaration
public static Deformation operator *(Deformation meshDeformation, Matrix4x4 m)
Parameters
Returns
Declaration
public static Deformation operator *(Matrix4x4 m, Deformation meshDeformation)
Parameters
Returns