Vuo
0.5.3
|
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_getEquilateralTriangle (void) |
Returns an equilateral triangle with bottom edge length 1, pointing upward on the XY plane, centered at the origin. | |
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. | |
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.