Prism
Class
Example
Here you can find code snippits that show how the API call Prism can be used.
int64_t model = CreateModel(); if (model) { // // Classes // int64_t classPrism = GetClassByName(model, "Prism"); // // Datatype Properties (attributes) // int64_t propertyLength = GetPropertyByName(model, "length"), propertyHeight = GetPropertyByName(model, "height"); // // Instances (creating) // int64_t myInstancePrism = CreateInstance(classPrism, nullptr); double length = 2.8, height = 1.4; SetDatatypeProperty(myInstancePrism, propertyLength, &length, 1); SetDatatypeProperty(myInstancePrism, propertyHeight, &height, 1); // // The resulting model can be viewed in 3D-Editor.exe // SaveModel(model, "c:\\created\\myPrism.bin"); CloseModel(model); }