C# Class StdPaint.Mesh

Represents a collection of triangles in 3D space.
Inheritance: Renderable
Show file Open project: TheBerkin/StdPaint Class Usage Examples

Public Methods

Method Description
FromOBJ ( string file ) : Mesh

Loads vertex data from an OBJ model file and creates a Mesh object out of it. Almost like magic.

Mesh ( Triangle3f triangles ) : System

Creates a new Mesh from a triangle array.

Private Methods

Method Description
CheckRegex ( string input, string pattern, Match &match ) : bool

Method Details

FromOBJ() public static method

Loads vertex data from an OBJ model file and creates a Mesh object out of it. Almost like magic.
public static FromOBJ ( string file ) : Mesh
file string The path to the file to load.
return Mesh

Mesh() public method

Creates a new Mesh from a triangle array.
public Mesh ( Triangle3f triangles ) : System
triangles Triangle3f The triangle array to make the mesh out of.
return System