DG Kernel Documentation


Skip Navigation Links.
Skip Navigation LinksHome Page > API Reference > General Geometry > Oriented Objects > IPolygon3D_DG Search Documentation


IPolygon3D_DG Interface

GetPoints
SetPoints
GetPointCount
IsClosed
GetParameters
SetParameters

A polygon in 3D defined by an array of points. It is considered closed is the first and the last points coinside geometrically (tolerance 1e-6).

Polygons are often used to approximate a curve, in which case the GetParameters() may contain array of parameters on the curve.


IPointArray_DG GetPoints()


void SetPoints(IPointArray_DG points)


int GetPointCount()


bool IsClosed()


IArrayDouble_DG GetParameters()

Returns null if the parameters were not stored neither by internal algorithms nor by a SetParameters() call.


void SetParameters(IArrayDouble_DG parameters)