openrndr / org.openrndr.binpack / RandomBinarySplitter

RandomBinarySplitter

class RandomBinarySplitter : Splitter (source)

Constructors

<init>

RandomBinarySplitter(enclosement: IntRectangle, invert: Boolean = true, constraints: (node: PackNode, rectangle: IntRectangle) -> Boolean = { _, _ -> true })

Properties

constraints

val constraints: (node: PackNode, rectangle: IntRectangle) -> Boolean

enclosement

val enclosement: IntRectangle

invert

val invert: Boolean

Functions

split

fun split(node: PackNode, rectangle: IntRectangle): List<PackNode>