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


Lines Sample

Lines Sample demonstrates programming of Line Strip objects

The application

By default, the application loads Lines.mdg with single continuous line strip of three segments. The form displays all properties of the line strip.

The line strip is closed. It has three underlying points Its index array is: [0, 1, 2, 0, -1].

When the point count is increased new points are added to the end of the point array and correspondent index is inserted into the end of the index array.

Turning on the "Per Vertex" check box enables interpolation of the line colors from one end to another.

See also: Sample list