Arc3D

This class represents the abstract concept Arc3D.

Class

class GeometricItem
   relation material
      range Material, cardinality [0, 1]
class Curve
class Arc3D
   property hasNormals
      range bool, cardinality [0, 1]
   property radius
      range double (64 bit), cardinality [1, 1]
   property segmentationParts
      range integer (64 bit), cardinality [0, 1]
   property size
      range double (64 bit), cardinality [0, 1]
   property start
      range double (64 bit), cardinality [0, 1]    

Example (based on GEOM ontology wrapper)

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

using RDF;      //  include at least engine.cs and geom.cs within your solution

public void CreateArc3D()
{
    Int64 model = RDF.engine.CreateModel();

    if (model != 0)
    {
        GEOM.Arc3D myArc3D = GEOM.Arc3D.Create(model);

        myArc3D.set_radius(1.8);
        myArc3D.set_start(1.57079633);
        myArc3D.set_size(3.14159265);
        myArc3D.set_segmentationParts(36);

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

Example (based on pure and inline API calls)

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

using RDF;      //  include at least engine.cs within your solution

public void CreateArc3D()
{
    Int64 model = RDF.engine.CreateModel();

    if (model != 0)
    {
        //
        //  Classes
        //
        Int64   classArc3D = RDF.engine.GetClassByName(model, "Arc3D");

        //
        //  Datatype Properties (attributes)
        //
        Int64   propertyRadius = RDF.engine.GetPropertyByName(model, "radius"),
                propertyStart = RDF.engine.GetPropertyByName(model, "start"),
                propertySize = RDF.engine.GetPropertyByName(model, "size"),
                propertySegmentationParts = RDF.engine.GetPropertyByName(model, "segmentationParts");

        //
        //  Instances (creating)
        //
        Int64   myInstanceArc3D = RDF.engine.CreateInstance(classArc3D);
        
        RDF.engine.SetDatatypeProperty(myInstanceArc3D, propertyRadius, 1.8);
        RDF.engine.SetDatatypeProperty(myInstanceArc3D, propertyStart, 1.57079633);
        RDF.engine.SetDatatypeProperty(myInstanceArc3D, propertySize, 3.14159265);
        RDF.engine.SetDatatypeProperty(myInstanceArc3D, propertySegmentationParts, (Int64) 36);

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

Example (based on pure API calls)

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

using RDF;      //  include at least engine.cs within your solution

public void CreateArc3D()
{
    Int64 model = RDF.engine.CreateModel();

    if (model != 0)
    {
        //
        //  Classes
        //
        Int64   classArc3D = RDF.engine.GetClassByName(model, "Arc3D");

        //
        //  Datatype Properties (attributes)
        //
        Int64   propertyRadius = RDF.engine.GetPropertyByName(model, "radius"),
                propertyStart = RDF.engine.GetPropertyByName(model, "start"),
                propertySize = RDF.engine.GetPropertyByName(model, "size"),
                propertySegmentationParts = RDF.engine.GetPropertyByName(model, "segmentationParts");

        //
        //  Instances (creating)
        //
        Int64   myInstanceArc3D = RDF.engine.CreateInstance(classArc3D, (string) null);

        double  radius = 1.3,
                start = 1.57079633,
                size = 3.14159265;
        Int64   segmentationParts = 36;
        
        RDF.engine.SetDatatypeProperty(myInstanceArc3D, propertyRadius, ref radius, 1);
        RDF.engine.SetDatatypeProperty(myInstanceArc3D, propertyStart, ref start, 1);
        RDF.engine.SetDatatypeProperty(myInstanceArc3D, propertySize, ref size, 1);
        RDF.engine.SetDatatypeProperty(myInstanceArc3D, propertySegmentationParts, ref segmentationParts, 1);

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