Cone
Class
class GeometricItem relation material range Material, cardinality [0, 1] class Solid class Cone property radius range double (64 bit), cardinality [1, 1] property height range double (64 bit), cardinality [1, 1] property segmentationParts range integer (64 bit), cardinality [0, 1]
Example
Here you can find code snippits that show how the API call Cone can be used.
using Engine; public void CreateCone() { Int64 model = Engine.x86_64.CreateModel(); if (model != 0) { // // Classes // Int64 classCone = Engine.x86_64.GetClassByName(model, "Cone"); // // Datatype Properties (attributes) // Int64 propertyHeight = Engine.x86_64.GetPropertyByName(model, "height"), propertyRadius = Engine.x86_64.GetPropertyByName(model, "radius"), propertySegmentationParts = Engine.x86_64.GetPropertyByName(model, "segmentationParts"); // // Instances (creating) // Int64 myInstanceCone = Engine.x86_64.CreateInstance(classCone, (string) null); double height = 2.8, radius = 1.3; Int64 segmentationParts = 36; Engine.x86_64.SetDatatypeProperty(myInstanceCone, propertyHeight, ref height, 1); Engine.x86_64.SetDatatypeProperty(myInstanceCone, propertyRadius, ref radius, 1); Engine.x86_64.SetDatatypeProperty(myInstanceCone, propertySegmentationParts, ref segmentationParts, 1); // // The resulting model can be viewed in 3D-Editor.exe // Engine.x86_64.SaveModel(model, "c:\\created\\myCone.bin"); Engine.x86_64.CloseModel(model); } }