KernelCAD Documentation

DInsight Home
Skip Navigation Links. Skip Navigation LinksHome Page > Programming Samples and Tutorials > Overview > Lines
Lines VC Sample Overview

Lines Sample

Lines Sample demonstrates programming of Line Strip objects

See also C# .NET Samples, All samples

The application

By default the application loads Lines.glm 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.