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 Models > Sections > Line and Curve Sections > Line Strips
Line Strips

Line Strips

Line Strips are sections (objects) which represent a number of continuous sequencees of straight segments joined together. As sections Line Strips have local frame and can be joined to a parent or have children.

Programmatically Line Strips can be created with a call to Create method of Object Generator with eType parameter set to eObjTypeLineStrip or by importing a VRML file  containing "IndexedLineSet" node. Yet another method is to call IStdShape.Line(pt0, pt1) This will create a simple straight line. Internal points which can lie on a curved shape can be added as described below.

Line Strips can also be created interactively:

1. With the help of the New Object editor of 3D Debugger:

Go to Model > New Object menu option. Select Curve \ Strip node. Press Modify button . In "Object Type" make sure that the "Generic Strip" radio button is on (default). Use Segment group to enter coordinates of consecutive points in the strip

2. Using Line Direct User Access command.

3. By importing a VRML file with "IndexedLineSet" node in Modeling Studio or Data Flow sample.

Runtime access to Line Strips is available via ISectionLineStripnLineStrip interface.

Line Strips are derived from Point Sets to use all its properties. This means that to modify geometry and other base properties of a line strip one needs to query ISectionPointSet from ISectionLineStrip or related ISection. When Color Per Vertex is true color of lines is interpolated between the ends of segments. Increasing Point Size will show points at joints.

Use IArray2 as described in the Point Sets topic to add or remove sampling point.

Line Strips implement implement ICurve interface,  which allows calculation of intermediate points and length

Properties:

Line Width - Width in pixels

Index - Array of integers, which refer to points in the base Points Array. Linked components of the strip are separated by index -1. If the strip consists of a single component it does not have to have -1 separators.

Stipple - (Boolean) If true the line is rendered stippled

StippleStyle - (unsigned short) Specifies style of the line: Common styles: 0x00FF Dashed; 0x0101 Dotted; 0x1c47 Dash - Dot style. See online documentation (MSDN site: http://msdn.microsoft.com/en-us/library/ ) for glLineStipple OpenGL function for other styles. This property has no effect if the Stipple property is false

StippleFactor - (interger) Specifies how the stipple pattern is stretched. See online documentation (MSDN site: http://msdn.microsoft.com/en-us/library/ ) for glLineStipple OpenGL function for details. This property has no effect if the Stipple property is false