PathEngine home previous: iContentChunkInstance::buildGround()next: iContentChunkInstance::getConnectingEdgeGeometry()
Contents, API Reference, Interfaces, iContentChunkInstance, edgesCanConnect

iContentChunkInstance::edgesCanConnect()

Description

Used to check whether edge pieces can actually be connected, before actually calling iContentChunkInstance::makeEdgeConnection() for the connection.

Syntax

bool edgesCanConnect(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 connection.
(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 connection.
(Must be non-negative and less than the value returned by iContentChunkInstance::numberOfConnectingEdges() for the target instance.)

Return Value

True if bridging geometry can be generated between the pair of connecting edges (or if the edges already match exactly).
Otherwise false.

Remarks

Note that the exact constraints applied here (i.e. in the case of explicit edge to edge connection management) differ slightly from the constraints applied if edge to edge connection is deferred until the actual 2D content processing step.

C# Mapping

bool edgesCanConnect(int connectingEdgeOnThis, ContentChunkInstance targetInstance, int connectingEdgeOnTarget);

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