Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commite8beb5604c

README.md

group.invert

Group every element of the class that the group named by name leaves out. Written under as, which defaults to name: inverting in place. A name that is not a group of class is refused.

Inputs

  • geometry (Geometry). The geometry carrying the group. A copy carrying its complement comes out.
  • name (String, default ""). The group to complement.
  • class (String, default "point", one of "edge", "point", "primitive", "vertex"). The element class the group lives on.
  • as (String, default ""). The name the complement is written under. Left empty it is name, inverting the group in place.

Outputs

  • geometry (Geometry). The input carrying the complement on class.
local tops = g.group.by_normal({ geometry = g.mesh.box({}), name = "top", class = "primitive", angle = 10 })
local sides = g.group.invert({ geometry = tops, name = "top", class = "primitive", as = "rest" })