Cone
Class
class GeometricItem relation material range Material, cardinality [0, 1] class Solid class Cone property height range double (64 bit), cardinality [1, 1] property radius range double (64 bit), cardinality [1, 1] property segmentationParts range integer (64 bit), cardinality [0, 1]
Example (based on pure API calls)
Here you can find code snippits that show how the API call Cone can be used.
#include "./include/engine.h" int64_t model = CreateModel(); if (model) { // // Classes // int64_t classCone = GetClassByName(model, "Cone"); // // Datatype Properties (attributes) // int64_t propertyHeight = GetPropertyByName(model, "height"), propertyRadius = GetPropertyByName(model, "radius"), propertySegmentationParts = GetPropertyByName(model, "segmentationParts"); // // Instances (creating) // int64_t myInstanceCone = CreateInstance(classCone, nullptr); double height = 2.8, radius = 1.3; int64_t segmentationParts = 36; SetDatatypeProperty(myInstanceCone, propertyHeight, &height, 1); SetDatatypeProperty(myInstanceCone, propertyRadius, &radius, 1); SetDatatypeProperty(myInstanceCone, propertySegmentationParts, &segmentationParts, 1); // // The resulting model can be viewed in 3D-Editor.exe // SaveModel(model, "c:\\created\\myCone.bin"); CloseModel(model); }