Class MeshDeformation
Encapsulates an arbitrary deformation of mesh vertices
Note
This class is available only in Tessera Pro
Inheritance
MeshDeformation
Assembly: cs.temp.dll.dll
public class MeshDeformation
Constructors
Declaration
public MeshDeformation(Func<Vector3, Vector3> deformPoint, Func<Vector3, Vector3, Vector3> deformNormal, Func<Vector3, Vector4, Vector4> deformTangent, bool invertWinding)
Parameters
Type |
Name |
Description |
Func<Vector3, Vector3> |
deformPoint |
|
Func<Vector3, Vector3, Vector3> |
deformNormal |
|
Func<Vector3, Vector4, Vector4> |
deformTangent |
|
Boolean |
invertWinding |
|
Fields
PostDeform
Declaration
public Matrix4x4 PostDeform
Field Value
Type |
Description |
Matrix4x4 |
|
PostDeformIT
Declaration
public Matrix4x4 PostDeformIT
Field Value
Type |
Description |
Matrix4x4 |
|
Declaration
public Matrix4x4 PreDeform
Field Value
Type |
Description |
Matrix4x4 |
|
Declaration
public Matrix4x4 PreDeformIT
Field Value
Type |
Description |
Matrix4x4 |
|
Properties
Declaration
public Func<Vector3, Vector3, Vector3> InnerDeformNormal { get; set; }
Property Value
Type |
Description |
Func<Vector3, Vector3, Vector3> |
|
Declaration
public Func<Vector3, Vector3> InnerDeformPoint { get; set; }
Property Value
Type |
Description |
Func<Vector3, Vector3> |
|
Declaration
public Func<Vector3, Vector4, Vector4> InnerDeformTangent { get; set; }
Property Value
Type |
Description |
Func<Vector3, Vector4, Vector4> |
|
Declaration
public bool InnerInvertWinding { get; set; }
Property Value
Declaration
public bool InvertWinding { get; }
Property Value
Methods
Declaration
public MeshDeformation Clone()
Returns
Deforms the vertices and normals of a mesh as specified.
Declaration
public Mesh Deform(Mesh mesh)
Parameters
Type |
Name |
Description |
Mesh |
mesh |
|
Returns
Declaration
public Vector3 DeformNormal(Vector3 p, Vector3 v)
Parameters
Type |
Name |
Description |
Vector3 |
p |
|
Vector3 |
v |
|
Returns
Declaration
public Vector3 DeformPoint(Vector3 p)
Parameters
Type |
Name |
Description |
Vector3 |
p |
|
Returns
Transforms the vertices and normals of a submesh mesh as specified.
Declaration
public Mesh Transform(Mesh mesh, int submesh)
Parameters
Type |
Name |
Description |
Mesh |
mesh |
|
Int32 |
submesh |
|
Returns
Operators
Declaration
public static MeshDeformation operator *(Matrix4x4 m, MeshDeformation meshDeformation)
Parameters
Returns
Declaration
public static MeshDeformation operator *(MeshDeformation meshDeformation, Matrix4x4 m)
Parameters
Returns