PathEngine home previous: iContentChunkInstance::hasRefs()next: iContentChunkInstance::numberOfConnectingEdges()
Contents, API Reference, Interfaces, iContentChunkInstance, makeEdgeConnection

iContentChunkInstance::makeEdgeConnection()

Description

Used to explicitly setup bridging geometry between edge to edge connection markers.
This can be useful where it is desirable for a custom editor to explicitly manage these edge to edge connections, and is required when calling iMeshFederation::buildTileMeshFromContent().

Syntax

void makeEdgeConnection(int32_t connectingEdgeOnThis, iContentChunkInstance& targetInstance, int32_t connectingEdgeOnTarget) const;

Parameters

connectingEdgeOnThis The index of the connecting edge (in this instance) to be matched at one side of the bridge geometry.
(Must be non-negative and less than the value returned by iContentChunkInstance::numberOfConnectingEdges().)
targetInstance The content chunk instance for the other side of the connection.
(Can be this instance.)
connectingEdgeOnTarget The index of the connecting edge (in the target instance) to be matched at the other side of the bridge geometry.
(Must be non-negative and less than the value returned by iContentChunkInstance::numberOfConnectingEdges() for the target instance.)

Remarks

The calling application must first ensure that the edges can be connected, by calling iContentChunkInstance::edgesCanConnect().
It is an error to call this method for a pair of edges that cannot be connected.

Face attributes for the bridging faces are copied from the face just inside connectingEdgeOnThis.

C# Mapping

void makeEdgeConnection(int connectingEdgeOnThis, ContentChunkInstance targetInstance, int connectingEdgeOnTarget);

Documentation for PathEngine release 6.04 - Copyright © 2002-2024 PathEnginenext: iContentChunkInstance::numberOfConnectingEdges()