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_Line
IKO_Geom2d_Line

IKO_Geom2d_Line Interface


Describes an infinite line in the plane (2D space).
A line is defined and positioned in the plane with an
axis (gp_Ax2d object) which gives it an origin and a unit vector.
The Geom2d_Line line is parameterized as follows:
P (U) = O + U*Dir
where:
- P is the point of parameter U,
- O is the origin and Dir the unit vector of its positioning axis.
The parameter range is ] -infinite, +infinite [.
The orientation of the line is given by the unit vector
of its positioning axis.
See Also
GCE2d_MakeLine which provides functions for more
complex line constructions
gp_Ax2d
gp_Lin2d 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
SetLin2d
SetDirection
Direction
SetLocation
Location
SetPosition
Position
Lin2d
Reverse
ReversedParameter
FirstParameter
LastParameter
IsClosed
IsPeriodic
Continuity
Distance
IsCN
D0
D1
D2
D3
DN
Transform
TransformedParameter
ParametricTransformation
Copy

HRESULT Init(IKO_gp_Ax2d* A)


HRESULT Init1(IKO_gp_Lin2d* L)


HRESULT Init2(KC2D* P, KC2D* V)


HRESULT SetLin2d(IKO_gp_Lin2d* L)


HRESULT SetDirection(KC2D* V)


HRESULT Direction(KC2D* ret)


HRESULT SetLocation(KC2D* P)


HRESULT Location(KC2D* ret)


HRESULT SetPosition(IKO_gp_Ax2d* A)


HRESULT Position(IKO_gp_Ax2d** ret)


HRESULT Lin2d(IKO_gp_Lin2d** ret)


HRESULT Reverse()


HRESULT ReversedParameter(double U, double* ret)


HRESULT FirstParameter(double* ret)


HRESULT LastParameter(double* ret)


HRESULT IsClosed(VARIANT_BOOL* ret)


HRESULT IsPeriodic(VARIANT_BOOL* ret)


HRESULT Continuity(GeomAbs_ShapeKO* ret)


HRESULT Distance(KC2D* P, double* ret)


HRESULT IsCN(int N, 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 TransformedParameter(double U, IKO_gp_Trsf2d* T, double* ret)


HRESULT ParametricTransformation(IKO_gp_Trsf2d* T, double* ret)


HRESULT Copy(IKO_Geom2d_Geometry** ret)