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]
   property asOpenGL
      range bool, cardinality [0, 1]    

Example

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

int64_t model = CreateModel();

if (model) {
    //
    //  Classes
    //
    int64_t classLine3D = GetClassByName(model, "Line3D");

    //
    //  Datatype Properties (attributes)
    //
    int64_t propertyPoints = GetPropertyByName(model, "points");

    //
    //  Instances (creating)
    //
    int64_t myInstanceLine3D = CreateInstance(classLine3D, nullptr);

    double  points[6] = { 0., 2., 0., 2., 1., 0. };
        
    SetDatatypeProperty(myInstanceLine3D, propertyPoints, points, 6);

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