Line3D

This class represents the concept Line3D.

Class

class GeometricItem
   relation material
      range Material, cardinality [0, 1]
class Curve
class Line3D
   property points
      range double (64 bit), cardinality [6, 6]    

Example

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

__int64 rdfModel = CreateModel();

if (rdfModel) {
    __int64 classLine3D = GetClassByName(rdfModel, "Line3D");

    __int64 propertyPoints = GetPropertyByName(rdfModel, "points");

    __int64 myInstanceLine3D = CreateInstance(classLine3D, nullptr);

    double  points[6];
    points[0] = 0.;
    points[1] = 2.;
    points[2] = 0.;
    points[3] = 2.;
    points[4] = 1.;
    points[5] = 0.;
        
    SetDatatypeProperty(myInstanceLine3D, propertyPoints, &points, 6);

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