DG Kernel (ActiveX) Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
What is new
Upgrading Native Apps
Licensing
Collapse ModelsModels
Collapse DG Kernel ControlsDG Kernel Controls
Collapse API ReferenceAPI Reference
Interface List
Vector Space
Collapse General GeometryGeneral Geometry
Collapse ModelModel
Collapse ViewView
Collapse General ComputingGeneral Computing
Collapse ViewsViews
Collapse Samples and TutorialsSamples and Tutorials
Collapse GraphicsGraphics
Collapse Math ObjectsMath Objects
Collapse DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation Links Go to DGKC docs Search Documentation


IEdge_KC(64) Interface

GetEnd
GetAdjacentSimplex
IsInteriorEdge

IIEdge_KC gives access to simplex edges (vertex segments).

IEdge_KC is returned by ISimplex.GetEdge interface. The mesh must be in upgraded state for this interface to be available

See also Morph sample


HRESULT GetEnd(int end, IVertex** vertex )

Parameters

end-[in] indicates the end to retrieve. 0 - first end 1 - second end

vertex - [out,retval] the returned end vertex of the edge

Remarks:

Returns end verticies of the edge


HHHRESULT GetAdjacentSimplex(int side, ISimplex** simplex )

Parameters

side - [in]  0 or 1 index of the side to retrieve

simplex -- [out,retval] the returned simplex or NULL if there is no simplex attached to the edge

Remarks:

For side 0 (1) returns simplex on the left (right) hand side of the edge.


HRESULT IsInteriorEdge(VARIANT_BOOL* interior)

Parameters

interior -[out, retval] The returned value

Remarks:

The method returns true if the edge is not an edge of the mesh, so there are two simplexes sharing this edge. This is true iff the GetAdjacentSimplex() above retuns non-NULL for both 0 and 1 sides.