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 Components > Interfaces > IStrip
IStrip Interface

IStrip Interface

GetJointCount

GetElement

IsClosed

This interface gives access to strips

See also Segment strips, Patch Tutorial, MiniCAD Sample, Interface List


HRESULT GetJointCount(int * pnCount)

Parameters

pnCount - [out] pointer to the variable which will receive the number of connectors in the strip.

Return Values

S_OK in case of success.

Remarks

Case when returned count is zero means that the strip is empty in case of 2D segment strips obtained from 3DS objects. In general situation there is one exception: A circle or similar closed line In this case the IsClosed method returns true. Note that empty strips (strips without elements of any kind) are not closed. See strips for more information.


HRESULT GetElement( int index, bool segment, IElement **ppIElem )  

Parameters

index - [in] zero-based index of the element.

segment - [in] if true the index-th element will be returned, if false  index-th connector will be returned.

ppIElem - [out] returned IElement reference. 

Return Values

S_OK in case of success.

Remarks

The method returns index-th item in the requested array. See strips for details.


HRESULT IsClosed( bool *pbClosed)  

Parameters

pbClosed - [out] pointer to a Boolean variable, which will be set to true is the loop is closed and to false otherwise.

Return Values

S_OK in case of success.

Remarks

If the strip is closed ( Its ends coincide, see Segment Strips for details ) the Boolean variable pointed to by pbClosed will be set to true and false otherwise.