Show / Hide Table of Contents

Class DeformationUtils

Inheritance
System.Object
DeformationUtils
Namespace: Sylves
Assembly: Sylves.dll
Syntax
public static class DeformationUtils : Object

Methods

GetDeformation(MeshData, Int32, Int32, Boolean)

Returns a deformation that transforms from cell co-ordinates to a prism defined by the mesh and the given parameters. For quad meshes, cell co-ordinates is a unit cube centered at the origin. For tri meshes, cell co-ordinates are a triangle prism centered at the origin.

Declaration
public static Deformation GetDeformation(MeshData surfaceMesh, int face, int subMesh, bool invertWinding)
Parameters
Type Name Description
MeshData surfaceMesh
System.Int32 face
System.Int32 subMesh
System.Boolean invertWinding
Returns
Type Description
Deformation

GetDeformation(MeshData, Single, Single, Boolean, Int32, Int32, Int32, Boolean)

Returns a deformation that transforms from cell co-ordinates to a prism defined by the mesh and the given parameters. For quad meshes, cell co-ordinates is a unit cube centered at the origin. For tri meshes, cell co-ordinates are a triangle prism centered at the origin.

Declaration
public static Deformation GetDeformation(MeshData surfaceMesh, float tileHeight, float surfaceOffset, bool smoothNormals, int face, int layer, int subMesh, bool invertWinding)
Parameters
Type Name Description
MeshData surfaceMesh
System.Single tileHeight
System.Single surfaceOffset
System.Boolean smoothNormals
System.Int32 face
System.Int32 layer
System.Int32 subMesh
System.Boolean invertWinding
Returns
Type Description
Deformation
In This Article
Back to top Generated by DocFX