KernelCAD Documentation

DInsight Home
Skip Navigation Links.
Start page
Quick Start
Installation
Overview of the software
What is new
Collapse KernelCAD ModelsKernelCAD Models
Collapse KernelCAD ComponentsKernelCAD Components
KernelCAD Control
KernelCAD .NET Control
Methods and Properties
Menu
Model Explorer
Birds Eye View
Programming
Direct User Access
Direct Operations
Interface Queries
Printing Support
Data Types
Modes of KernelCAD Control
DIObjectGenerator class
Properties
FlatObjectArray Poperty
Context
64 bit development
Dual Mode
Initialisation Context
Overlay Editor
Memory Management
Input validation
Collapse Advanced functionalityAdvanced functionality
Collapse InterfacesInterfaces
Alphabetical list
I3DGrid
I3DBugger
I3Dpt
IAxiBase
IAxis
IBoolSection
IBoolSectionEx
IBoundary
IColor
IConstraint
IData
IDiffSurface_KC
IDIFont
IDraw
IDrawUtil
IDraw2
IElem
IElement
IKCLine
ILightSource
ILocation
ILocationEx
IMaterial
IMetrics
IMetrics2
IModel
IModel2
IModelEx
IPatch
IKCPathCollisionDetector
IProfiles
IPropertyArray
IPropertyArray2
IStdShape
IStrip
ISurface
IText
ITexture
ITransform
IUnknown
Collapse Open Cascade TechnologyOpen Cascade Technology
Collapse DataData
Collapse MovementMovement
Collapse FramesFrames
Collapse Oriented ObjectsOriented Objects
Collapse SectionsSections
Collapse GeneralGeneral
Collapse Topological InterfacesTopological Interfaces
Collapse Viewing InterfacesViewing Interfaces
Collapse Lines And CurvesLines And Curves
Collapse Symmetry InterfacesSymmetry Interfaces
Collapse Clipping plane interfacesClipping plane interfaces
Collapse AlgorithmsAlgorithms
Collapse 2D Geometry2D Geometry
Collapse Programming Samples and TutorialsProgramming Samples and Tutorials
Collapse OverviewOverview
Collapse DeploymentDeployment
Collapse .NET Samples.NET Samples
Collapse C++ SamplesC++ Samples
Collapse Visual Basic SamplesVisual Basic Samples
Collapse Delphi SamplesDelphi Samples
Collapse 3D Debugger3D Debugger
Collapse DeploymentDeployment
Licensing
Model Viewer
Open C++ Source
Technical Support
Skip Navigation LinksHome Page > KernelCAD Components > Interfaces > Open Cascade Technology > Geom2d > IKO_Geom2d_Circle
IKO_Geom2d_Circle

IKO_Geom2d_Circle Interface


Describes a circle in the plane (2D space).
A circle is defined by its radius and, as with any conic
curve, is positioned in the plane with a coordinate
system (gp_Ax22d object) where the origin is the
center of the circle.
The coordinate system is the local coordinate
system of the circle.
The orientation (direct or indirect) of the local
coordinate system gives an explicit orientation to the
circle, determining the direction in which the
parameter increases along the circle.
The Geom2d_Circle circle is parameterized by an angle:
P(U) = O + R*Cos(U)*XDir + R*Sin(U)*YDir
where:
- P is the point of parameter U,
- O, XDir and YDir are respectively the origin, "X
Direction" and "Y Direction" of its local coordinate system,
- R is the radius of the circle.
The "X Axis" of the local coordinate system therefore
defines the origin of the parameter of the circle. The
parameter is the angle with this "X Direction".
A circle is a closed and periodic curve. The period is
2.*Pi and the parameter range is [ 0,2.*Pi [.
See Also
GCE2d_MakeCircle which provides functions for
more complex circle constructions
gp_Ax22d and gp_Circ2d for an equivalent, non-parameterized data structure.

Query IKO_Standard_Object from this interface to create a copy or obtain the type name

Methods

Init
Init1
Init2
SetCirc2d
SetRadius
Circ2d
Radius
ReversedParameter
Eccentricity
FirstParameter
LastParameter
IsClosed
IsPeriodic
D0
D1
D2
D3
DN
Transform
Copy

HRESULT Init(IKO_gp_Circ2d* C)


HRESULT Init1(IKO_gp_Ax2d* A, double Radius, VARIANT_BOOL Sense)


HRESULT Init2(IKO_gp_Ax22d* A, double Radius)


HRESULT SetCirc2d(IKO_gp_Circ2d* C)


HRESULT SetRadius(double R)


HRESULT Circ2d(IKO_gp_Circ2d** ret)


HRESULT Radius(double* ret)


HRESULT ReversedParameter(double U, double* ret)


HRESULT Eccentricity(double* ret)


HRESULT FirstParameter(double* ret)


HRESULT LastParameter(double* ret)


HRESULT IsClosed(VARIANT_BOOL* ret)


HRESULT IsPeriodic(VARIANT_BOOL* ret)


HRESULT D0(double U, KC2D* P)


HRESULT D1(double U, KC2D* P, KC2D* V1)


HRESULT D2(double U, KC2D* P, KC2D* V1, KC2D* V2)


HRESULT D3(double U, KC2D* P, KC2D* V1, KC2D* V2, KC2D* V3)


HRESULT DN(double U, int N, KC2D* ret)


HRESULT Transform(IKO_gp_Trsf2d* T)


HRESULT Copy(IKO_Geom2d_Geometry** ret)