DG Kernel Documentation


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


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.