Point3D

This class represents the concept Point3D.

Class

class GeometricItem
   relation material
      range Material, cardinality [0, 1]
class Point
class Point3D
   property coordinates
      range double (64 bit), cardinality [3, 3]    

Example

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

__int64 rdfModel = CreateModel();

if (rdfModel) {
    __int64 classPoint3D = GetClassByName(rdfModel, "Point3D");

    __int64 propertyCoordinates = GetPropertyByName(rdfModel, "coordinates");

    __int64 myInstancePoint3D = CreateInstance(classPoint3D, nullptr);

    double  coordinates[3];
    coordinates[0] = 0.;
    coordinates[1] = 2.;
    coordinates[2] = 0.;
        
    SetDatatypeProperty(myInstancePoint3D, propertyCoordinates, &coordinates, 3);

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