Class MeshUtils
- Namespace
- Lime
- Assembly
- Lime.dll
public static class MeshUtils
- Inheritance
-
MeshUtils
- Inherited Members
Methods
Combine<T>(params Mesh<T>[])
public static Mesh<T> Combine<T>(params Mesh<T>[] meshes) where T : unmanaged
Parameters
meshes
Mesh<T>[]
Returns
- Mesh<T>
Type Parameters
T
CreateCone(float, float, int, Color4)
Creates a cone standing on the X-Z plane.
public static Mesh<VertexPositionColor> CreateCone(float height, float radius, int tesselation, Color4 color)
Parameters
Returns
CreateCylinder(float, float, int, Color4)
Creates a cylinder standing on the X-Z plane.
public static Mesh<VertexPositionColor> CreateCylinder(float height, float radius, int tesselation, Color4 color)
Parameters
Returns
CreateFrustum(float, float, float, int, Color4)
Creates a frustum standing on the X-Z plane.
public static Mesh<VertexPositionColor> CreateFrustum(float height, float radius1, float radius2, int tesselation, Color4 color)
Parameters
Returns
RemoveDuplicates<TVertex>(Mesh<TVertex>)
public static void RemoveDuplicates<TVertex>(Mesh<TVertex> mesh) where TVertex : unmanaged
Parameters
mesh
Mesh<TVertex>
Type Parameters
TVertex
RemoveDuplicates<TVertex>(Mesh<TVertex>, IEqualityComparer<TVertex>)
public static void RemoveDuplicates<TVertex>(Mesh<TVertex> mesh, IEqualityComparer<TVertex> comparer) where TVertex : unmanaged
Parameters
mesh
Mesh<TVertex>comparer
IEqualityComparer<TVertex>
Type Parameters
TVertex
TransformVertices<T>(Mesh<T>, VertexProcessor<T>)
public static void TransformVertices<T>(Mesh<T> mesh, MeshUtils.VertexProcessor<T> processor) where T : unmanaged
Parameters
mesh
Mesh<T>processor
MeshUtils.VertexProcessor<T>
Type Parameters
T