Pyramid
Class
Example
Here you can find code snippits that show how the API call Pyramid can be used.
using Engine; public void CreatePyramid() { Int64 model = Engine.x86_64.CreateModel(); if (model != 0) { // // Classes // Int64 classPyramid = Engine.x86_64.GetClassByName(model, "Pyramid"); // // Datatype Properties (attributes) // Int64 propertyLength = Engine.x86_64.GetPropertyByName(model, "length"), propertyHeight = Engine.x86_64.GetPropertyByName(model, "height"); // // Instances (creating) // Int64 myInstancePyramid = Engine.x86_64.CreateInstance(classPyramid, (string) null); double length = 2.8, height = 1.4; Engine.x86_64.SetDatatypeProperty(myInstancePyramid, propertyLength, ref length, 1); Engine.x86_64.SetDatatypeProperty(myInstancePyramid, propertyHeight, ref height, 1); // // The resulting model can be viewed in 3D-Editor.exe // Engine.x86_64.SaveModel(model, "c:\\created\\myPyramid.bin"); Engine.x86_64.CloseModel(model); } }