DG Kernel Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
Overview of the software
What is new
Licensing
Collapse ModelsModels
Collapse DG Kernel ComponentsDG Kernel Components
Collapse API ReferenceAPI Reference
Interface List
Vector Space
Collapse General GeometryGeneral Geometry
Collapse ModelModel
Collapse ViewView
Collapse General ComputingGeneral Computing
Collapse Samples and TutorialsSamples and Tutorials
Collapse GraphicsGraphics
Collapse Math ObjectsMath Objects
Collapse DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation Links Search Documentation


Infinite 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,, ILineGeom, 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 add a Straight Line to a model wrap the line into a Line Entity as described in Wrapping Mathematical Curves

 

See also: Curves Overview, Native Curves