Line3D
Class
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); }