Empeld
Empeld plugin documentation.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events
pluginbase.Helpers.Mesh.Manipulation.CoordinateManip Class Reference

Static Public Member Functions

static void ManipulateCoordinates (this Mesh mesh, Func< Vector3, Vector3 > manip)
 
static void SwapYZ (this Mesh mesh)
 
static void InvertZ (this Mesh mesh)
 

Member Function Documentation

static void pluginbase.Helpers.Mesh.Manipulation.CoordinateManip.InvertZ ( this Mesh  mesh)
static
22  {
23  mesh.ManipulateCoordinates(v => new Vector3(v.X, v.Y, -v.Z));
24  }
static void pluginbase.Helpers.Mesh.Manipulation.CoordinateManip.ManipulateCoordinates ( this Mesh  mesh,
Func< Vector3, Vector3 >  manip 
)
static
9  {
10  foreach(var vert in mesh.Vertices)
11  {
12  vert.Coordinate = manip(vert.Coordinate);
13  }
14  }
static void pluginbase.Helpers.Mesh.Manipulation.CoordinateManip.SwapYZ ( this Mesh  mesh)
static
17  {
18  mesh.ManipulateCoordinates(v => new Vector3(v.X, v.Z, v.Y));
19  }

The documentation for this class was generated from the following file: