Instance Method
connectPaths(with:andNode:extendPath:) connectPathsWithNode:andNode:extendPath: connectPathsWithNode_andNode_extendPath_
Connects two path endpoints and optionally adjusts their adjacent segments.
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) -> GSNodeParameters
extendPathWhether 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
Connects two path endpoints.
Opens or divides the path at a node.
Divides paths at two on-curve nodes and reconnects the resulting endpoints crosswise.
Reconnects four on-curve nodes according to their tangent directions.
Connects coincident endpoints of open paths.
Connects the nearest endpoints of a collection of open paths.