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 > IPatch
IPatch Interface

IPatch Interface

GetEdgeComponents
GetVertices

IPatch interface is implemented by patches of surfaces. It gives access to members of the patch software object.

See also: Patchwork Sample, Interface List


HRESULT GetEdgeComponents(IArray2** edges)

Parameters

edges - [out, retval] new array with elements of type IStrip

Remarks:

The methods creates a new array and fills it with IStrip interfaces implemented by wires of the patch.

Elements of the strip are edges. Query IKCLine from the returned element to access the line. When the edge is not straight the element also implement IList which is a list containing IVertex elements for end and internal vertices

Connectors of the strip are Vertices. Query IVertex from the returned element to access the veretx

Edges are numbered in Counter Clock Wise order if looking from outside of the object.

See also: Patchwork Sample


HRESULT GetVertices(IArray2** vertices)

Parameters

vertices - [out, retval] new array with elements of type IVertex

Remarks:

The methods creates a new array and fills it with IVertex interfaces implemented by vertices of the patch. Vertices are numbered in Counter Clock Wise order if looking from outside of the object. The vertex with index ind in the array is one of ends of ind-th edge returned by the GetEdges method above.