Line3Dn
Class
class GeometricItem relation material range Material, cardinality [0, 1] class Curve class Line3Dn property asOpenGL range bool, cardinality [0, 1] property endDirection range double (64 bit), cardinality [0, 3] property points range double (64 bit), cardinality [0, 6] property startDirection range double (64 bit), cardinality [0, 3] property x0 range double (64 bit), cardinality [0, 1] property x1 range double (64 bit), cardinality [0, 1] property y0 range double (64 bit), cardinality [0, 1] property y1 range double (64 bit), cardinality [0, 1] property z0 range double (64 bit), cardinality [0, 1] property z1 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 Line3Dn can be used.
using RDF; // include at least engine.cs within your solution public void CreateLine3Dn() { Int64 model = RDF.engine.CreateModel(); if (model != 0) { // // Classes // Int64 classLine3Dn = RDF.engine.GetClassByName(model, "Line3Dn"); // // Datatype Properties (attributes) // Int64 propertyPoints = RDF.engine.GetPropertyByName(model, "points"); // // Instances (creating) // Int64 myInstanceLine3Dn = RDF.engine.CreateInstance(classLine3Dn, (string) null); double[] points = { 0.0, 2.0, 0.0, 2.0, 1.0, 0.0 }; RDF.engine.SetDatatypeProperty(myInstanceLine3Dn, propertyPoints, ref points[0], 6); // // The resulting model can be viewed in 3D-Editor.exe // RDF.engine.SaveModel(model, "c:\\created\\myLine3Dn.bin"); RDF.engine.CloseModel(model); } }