Cube

This class represents the concept Cube.

Class

class GeometricItem
   relation material
      range Material, cardinality [0, 1]
class Solid
class Cube
   property length
      range double (64 bit), cardinality [1, 1]    

Example

Here you can find code snippits that show how the API call Cube can be used.

__int64 rdfModel = CreateModel();

if (rdfModel) {
    __int64 classCube = GetClassByName(rdfModel, "Cube");

    __int64 propertyLength = GetPropertyByName(rdfModel, "length");

    __int64 myInstanceCube = CreateInstance(classCube, nullptr);

    double  length = 1.8;
        
    SetDatatypeProperty(myInstanceCube, propertyLength, &length, 1);

    //
    //	The resulting model can be viewed in 3D-Editor.exe
    //
    SaveModel(rdfModel, "c:\\myFile.bin");
    CloseModel(rdfModel);
}