Skip to content

Search

Documentation

boolean2d

Draws the node as its 2D children combined by operation, holes and all. The children stay in the tree, hidden and editable; fill_rule and the cleanup…

On this page

2d · render · 8 properties · 2D

Draws the node as its 2D children combined by operation, holes and all. The children stay in the tree, hidden and editable; fill_rule and the cleanup keys tune the combination, and color, texture and material dress the result.

In a scene, boolean2d is the node key that applies it. A script reaches each property below as a field on node.boolean2d: reading one asks the running component, and assigning one leaves the rest alone. The whole table is node.boolean2d.get() and node.boolean2d.set(table).

Properties

property type default description
clean_result bool true Clear the result of the near-duplicate points rounding leaves
color color [1,1,1,1] Tint of the result, as channel floats or #rrggbb / #rrggbbaa
fill_rule enum even_odd Which parts of crossing or nested outlines count as inside: an odd number of them, any winding, or only counter-clockwise or clockwise winding One of even_odd, non_zero, positive, negative.
keep_collinear bool false Keep a point that sits on the straight line between its neighbours, in the children and in the result
material asset · material — The material the result draws with; empty takes an inherited material component, else the built-in one
min_area float 0 A result outline or hole enclosing less than this area, in square units of the node's own space, is dropped At least 0.
operation enum union How the children are combined, in the order they are declared One of union, difference, intersection, symmetric_difference, reverse_difference.
texture asset · texture — Image file, project-relative, or a texture asset the result is drawn with, centred on the node at 100 texture pixels per unit, as a polygon's default UVs are; empty draws the colour alone

Asset types this component references: material, texture.

Are you sure?