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 > Sections > Mesh interfaces > IMeshPointKC
IMeshPointKC Interface

IMeshPointKC(64) Interface

GetPoint
GetLocation
GetEdge
GetSimplexPosition

IMeshPointKC gives access to MeshPoint objects, which represent a point on meshed surface. It contains information about the simplex the point belongs to and where in the simplex it is located.

Position of the simplex is returned by the GetSimplexPosition method. The position can be used to retrieve the simplex via IMeshEx.GetSimplex() or via IMesh.GetSimplexVertices()>IMesh.GetVertexCoord()

When point belongs to an edge (GetLocation() returns EPointInSimplexLocation.eSimplexPointLocationEdge)) or coinsides with a vertex  (GetLocation() returns EPointInSimplexLocation.eSimplexPointLocationVertex)) index of the edge or the vertex is returned by GetEdge(). The edge in the first case can be obtained via ISimplexEx_KC.GetEdge(). The vertex in the second case can be obtained via ISimplex.GetVertexPosition() > IMesh.GetVertexCoord()

When point belongs to an edge or coinsides with a vertex  the simplex containing the point is not unique. Selection of the simplex must be considered random. Adjacent simplexes can be obtained via ISimplex > ISimplexEx_KC > ISimplexEx_KC.GetEdge() > IEdge_KC.GetAdjacentSimplex() or via IVertex > IVertexEx_KC > IVertexEx_KC.GetStarSimplex() > ISimplex respectively.

IMeshPointKC can be queried from ISurfacePointKC. Use query  IMeshPointKC > ISurfacePointKC > ISurfacePointKC.GetItem() > ISection to identify the section (object) where the meshed surface belongs

See also: Morph sample. Mesh Interfaces


HRESULT GetPoint( DIPoint* point )

Parameters

point- [out] 3D Coordinates of the point

Remarks:

Returns 3D coordinates of the point. In most cases coordinates are relative to the local frame of the section (object) which owns the mesh


HRESULT GetLocation( EPointInSimplexLocation* location )

Parameters

location - [out,retval] Location of the point inside the simplex

Remarks:

Returns location of the point inside the simplex identified by the GetSimplexPosition method. See more deatils in the interface overview above


HRESULT GetEdge( int* edge )

Parameters

edge- [out, retval] 0 based index of the edge or vertex in the simplex or -1 if the point is located in internal area of the face

Remarks:

When the point belongs to an edge of the simplex the method returns 0 based index of the edge or vertex. Edges and vertices are numbered in CCW direction looking from the end of external normal. See more deatils in the interface overview above


HRESULT GetSimplexPosition( int* position )

Parameters

position- [out,retval] Position of the simplex where the point belongs in list of simplexes of the mesh

Remarks:

The method returns position of the simplex where the point belongs in list of simplexes of the mesh. This position can be used in a number of interfaces, particularily IMeshEx.GetSimplex()