Cube
Class
Example (based on pure API calls)
Here you can find code snippits that show how the API call Cube can be used.
#include "./include/engine.h" int64_t model = CreateModel(); if (model) { // // Classes // int64_t classCube = GetClassByName(model, "Cube"); // // Datatype Properties (attributes) // int64_t propertyLength = GetPropertyByName(model, "length"); // // Instances (creating) // int64_t myInstanceCube = CreateInstance(classCube, nullptr); double length = 1.8; SetDatatypeProperty(myInstanceCube, propertyLength, &length, 1); // // The resulting model can be viewed in 3D-Editor.exe // SaveModel(model, "c:\\created\\myCube.bin"); CloseModel(model); }