Skip to content
Alessandro Febretti edited this page Feb 8, 2014 · 4 revisions

Last revision: ver. 4.2 - 11 September 2013

Method(s) Description
ModelGeometry create(string name)
int addVertex(Vector3 position) Adds a vertex and return its index. See Vector3.
setVertex(int index, Vector3 position) Replaces an existing vertex. See Vector3.
Vector3 getVertex(int index) Retrieves an existing vertex. See Vector3.
int addColor(Color color) Adds a vertex color and return its index. The color will be applied to the vertex with the same index as this color. See Color.
setColor(int index, Color color) Replaces an existing color. See Color.
Color getColor(int index) Retrieves an existing color. See Color.
addPrimitive(PrimitiveType type, int startIndex, int endIndex) Adds a primitive set. Type can be PrimitiveType.Point, PrimitiveType.Triangles, PrimitiveType.TriangleStrip.
clear() Removes all vertices and colors from this model.
string getName()
Clone this wiki locally