Home Page > KernelCAD Models > Mathematical Objects > Curves > Straight Lines
Straight Line
IInfinite Straight Line or Ray
Straight Line as a
Mathematical Objects
can be used to perform calculations or to define geometry of a
Line Section
Straight Lines can be manipulated via ILine interface.
Straight Lines also implement ILineMetr, ILineMetr2,,
IILineGeom,
IMetrics2,
ICurve and
IGraphicItem interfaces
To create a Straight Line or Ray use IStdShape.LineInf()
or:
1. Call
Create or
Create2 method of
IDIObjectGenerator with
parameter eType set to eObjTypeLine or
eObjTypeRay member of
EObjectType enumeration.
2. Query ILine
from IUnknown
returned by the Create(2) method
To aad a Straight Line to the model wrap the line into a Line Section as
described in Wrapping
Mathematical Curves
|