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 (based on pure API calls)

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

using RDF;      //  include at least engine.cs within your solution

public void CreateCube()
{
    Int64 model = RDF.engine.CreateModel();

    if (model != 0)
    {
        //
        //  Classes
        //
        Int64   classCube = RDF.engine.GetClassByName(model, "Cube");

        //
        //  Datatype Properties (attributes)
        //
        Int64   propertyLength = RDF.engine.GetPropertyByName(model, "length");

        //
        //  Instances (creating)
        //
        Int64   myInstanceCube = RDF.engine.CreateInstance(classCube, (string) null);

        double  length = 1.8;

        RDF.engine.SetDatatypeProperty(myInstanceCube, propertyLength, ref length, 1);

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