DG Kernel (ActiveX) Documentation


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


IEllipse_KC Interface

GetA
SetA
GetB
SetB
GetNormalAtAngle
GetNormalAtAngle

If this ellipse defines an edge or otherwise is part of a model, after any modification IGeometry_DG.SetModified() has to be called for the change to appear in 3D view.

A standalone 2D ellipse can be created via IObjectGenerator_DG.Create("Ellipse_KC") > IEllipse_KC query.

Access to properties of an ellipse


HRESULT GetA(double* a)

Parameters

a -[out, retval] The first radius of the ellipse


HRESULT SetA(double a)

Remarks

Modifies the first radius


HRESULT GetB(double* b)

Parameters

b -[out, retval] The second radius of the ellipse


HRESULT SetB(double b)

Remarks:

Modifies the second radius


HRESULT GetPointAtAngle(double angle, double* x, double* y)

Parameters

angle -[out] Polar angle in radiants (angle with direction of x axis)

x, y -[out] The returned point on the ellipse

Remarks:

Returns point on the elipse in direction of the polar angle


HRESULT GetNormalAtAngle(double angle, double* nx, double* ny)

Parameters

angle -[out] Polar angle in radiants (angle with direction of x axis)

x, y -[out] The returned point on the ellipse

Remarks:

Returns normal at point on the elipse in direction of the polar angle. Coordinates of the point can beobtained with the GetPointAtAngle() above