intersections
fun intersections(contour: ShapeContour, searchFrom: CompositionNode = composition.root as GroupNode, mergeThreshold: Double = 0.5): List<ShapeNodeIntersection>
Content copied to clipboard
Test a given contour
against org.openrndr.shape.contours in the composition tree
Return
a list of org.openrndr.shape.ShapeNodeIntersection
Parameters
contour
the query contour
searchFrom
a node from which the search starts, defaults to composition root
mergeThreshold
minimum distance between intersections before they are merged together, 0.0 or lower means no org.openrndr.shape.merge
fun CompositionNode.intersections(contour: ShapeContour, mergeThreshold: Double = 0.5): List<ShapeNodeIntersection>
Content copied to clipboard
fun CompositionNode.intersections(shape: Shape, mergeThreshold: Double = 0.5): List<ShapeNodeIntersection>
Content copied to clipboard
fun intersections(shape: Shape, searchFrom: CompositionNode = composition.root as GroupNode, mergeThreshold: Double = 0.5): List<ShapeNodeIntersection>
Content copied to clipboard
Test a given shape
against org.openrndr.shape.contours in the composition tree
Return
a list of org.openrndr.shape.ShapeNodeIntersection
Parameters
shape
the query shape
searchFrom
a node from which the search starts, defaults to composition root