Vuo  0.6.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
VuoVertices.c File Reference

Description

VuoVertices implementation.

Functions

VuoVertices VuoVertices_alloc (unsigned int vertexCount, unsigned int elementCount)
 Allocates and registers the vertex (position, normal, ...) and element arrays.
 
VuoVertices VuoVertices_getQuad (void)
 Returns a quad with dimensions 1x1, on the XY plane, centered at the origin.
 
VuoVertices VuoVertices_getQuadWithoutNormals (void)
 Returns a quad with dimensions 1x1, on the XY plane, centered at the origin.
 
VuoVertices VuoVertices_getEquilateralTriangle (void)
 Returns an equilateral triangle with bottom edge length 1, pointing upward on the XY plane, centered at the origin.
 
VuoVertices VuoVertices_makeFrom2dPoints (VuoList_VuoPoint2d positions, VuoVertices_ElementAssemblyMethod elementAssemblyMethod)
 Returns a VuoVertices consisting of the given positions and element assembly method.
 
VuoVertices VuoVertices_makeFrom3dPoints (VuoList_VuoPoint3d positions, VuoVertices_ElementAssemblyMethod elementAssemblyMethod)
 Returns a VuoVertices consisting of the given positions and element assembly method.
 
VuoVertices_ElementAssemblyMethod VuoVertices_elementAssemblyMethodFromCString (const char *elementAssemblyMethodString)
 Returns the VuoVertices_ElementAssemblyMethod corresponding with the string elementAssemblyMethodString.
 
const char * VuoVertices_cStringForElementAssemblyMethod (VuoVertices_ElementAssemblyMethod elementAssemblyMethod)
 Returns a string constant representing elementAssemblyMethod.
 
void VuoVertices_verticesWithJsonArray (json_object *js, const char *arrayName, unsigned int expectedVertexCount, VuoPoint4d *vertices)
 Helper method for VuoVertices_valueFromJson.
 
VuoVertices VuoVertices_valueFromJson (json_object *js)
 Decodes the JSON object js to create a new value.
 
json_object * VuoVertices_jsonArrayWithVertices (VuoPoint4d *vertices, unsigned int vertexCount)
 Helper method for VuoVertices_jsonFromValue.
 
json_object * VuoVertices_jsonFromValue (const VuoVertices value)
 Encodes value as a JSON object.
 
char * VuoVertices_summaryFromValue (const VuoVertices value)
 A brief summary of the contents of this mesh.
 

Function Documentation

json_object* VuoVertices_jsonArrayWithVertices ( VuoPoint4d vertices,
unsigned int  vertexCount 
)

Helper method for VuoVertices_jsonFromValue.

Turns a C array of VuoPoint4ds into a json_object array.

void VuoVertices_verticesWithJsonArray ( json_object *  js,
const char *  arrayName,
unsigned int  expectedVertexCount,
VuoPoint4d vertices 
)

Helper method for VuoVertices_valueFromJson.

Turns the JSON array arrayName in object js into a C array of VuoPoint4ds. If no array arrayName exists, initializes all elements to the zero point.