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