DG Kernel (ActiveX) Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
What is new
Upgrading Native Apps
Licensing
Expand ModelsModels
Expand DG Kernel ControlsDG Kernel Controls
Collapse API ReferenceAPI Reference
Interface List
Vector Space
Collapse General GeometryGeneral Geometry
Expand ModelModel
Expand ViewView
Expand General ComputingGeneral Computing
Expand ViewsViews
Expand Samples and TutorialsSamples and Tutorials
Expand GraphicsGraphics
Expand Math ObjectsMath Objects
Expand DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation LinksHome Page > API Reference > General Geometry > Oriented Objects > IPolygon3D_DG Go to DGKC docs Search Documentation


IPolygon3D_DG Interface

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.

A standalone 3D polygon can be created via IObjectGenerator_DG.Create("IPolygon3D_DG") > IPolygon3D_DG query.

Implements also: IObject_DG.

GetPoints
SetPoints
GetPointCount
IsClosed
GetParameters
SetParameters

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. The returned array is not a reference. A call to the SetParameters() method below is required to reflect in the polygon any changes to the array.


void SetParameters(IArrayDouble_DG parameters)