Declaration

func connectPaths(with moveNode: GSNode, andNode overNode: GSNode, extendPath: Bool) -> GSNode?

Declaration

- (GSNode *) connectPathsWithNode:(GSNode *) moveNode andNode:(GSNode *) overNode extendPath:(BOOL) extendPath;

Declaration

connectPathsWithNode_andNode_extendPath_(moveNode: GSNode, overNode: GSNode, extendPath: bool) -> GSNode

Parameters

extendPath

Whether to extend adjacent segments to a suitable intersection before connecting them.

Return Value

The surviving node at the connection, or nil when the nodes cannot be connected.

Discussion

Endpoints on different open paths join the paths. Endpoints on the same open path close it.

See Also

Connecting Paths