DG Kernel Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
Overview of the software
What is new
Licensing
Expand ModelsModels
Expand DG Kernel ComponentsDG Kernel Components
Expand API ReferenceAPI Reference
Expand Samples and TutorialsSamples and Tutorials
Expand GraphicsGraphics
Collapse Math ObjectsMath Objects
Expand DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation LinksHome Page > Math Objects > Curves > Curve Technologies Search Documentation


Curve Technologies

There are two different technologies for representing curves.

BSpline Curves

 BSpline Curves are accessed via IBSplineCurve_DG interface. Use IObjectGenerator_DG > Create("BSplineCurve_DG") > IBSplineCurve_DG to create a standalone curve.

Curves, defining geometry of BRep edges, can be accessed via IBRepEdge_DG.GetCurve() > IBSplineCurve_DG.

To add a new BSpline Curve to the scene the curve has to be wrapped into a BRepEdge first (one of methods):

IObjectGenerator_DG > Create1("BRepEdge_DG", iCurve) > IBRepShape_DG > IModel_DG.AddBRepShape();

See CreateSpline() in Curves sample for an example.

See also: BSpline Curves, ICircle_DG

Native DG Kernel curves

These curves are considered deprecated, but can still be useful as a simple alternative

Native curves are not entities, which means they are not part of any DG Kernel model by itself and lack many of the relevant properties like parent or children, but they can be wrapped in a LineEntity (See below).

Native curves implement ICurve interface.

To add a geometric curve to the model wrap the curve into a LineEntity:

See also:  Free-form Curves, Arc Spline CurvesPipes sample,