Point3D

This class represents the concept Point3D.

Class

class GeometricItem
   relation material
      range Material, cardinality [0, 1]
class Point
class Point3D
   property asOpenGL
      range bool, cardinality [0, 1]
   property coordinates
      range double (64 bit), cardinality [0, 3]
   property points
      range double (64 bit), cardinality [0, 3]
   property x
      range double (64 bit), cardinality [0, 1]
   property y
      range double (64 bit), cardinality [0, 1]
   property z
      range double (64 bit), cardinality [0, 1]    

Example (based on pure API calls)

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

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

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

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

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

        //
        //  Instances (creating)
        //
        Int64   myInstancePoint3D = RDF.engine.CreateInstance(classPoint3D, (string) null);

        double[]    coordinates = { 0.0, 2.0, 0.0 };
        
        RDF.engine.SetDatatypeProperty(myInstancePoint3D, propertyCoordinates, ref coordinates[0], 3);
        
        //
        //  The resulting model can be viewed in 3D-Editor.exe
        //
        RDF.engine.SaveModel(model, "c:\\created\\myPoint3D.bin");
        RDF.engine.CloseModel(model);
    }
}