Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commite8beb5604c

README.md

attribute.remove

Remove a named attribute from a class of a geometry. A copy without the column comes out.

Inputs

  • geometry (Geometry). What the column is dropped from. A copy without it comes out.
  • class (one of detail, edge, point, primitive, vertex). Default "point". Which rows the column belongs to. The same name on another class stays where it is.
  • name (String). Default "". Which column to drop: the name it was written under.

Outputs

  • geometry: the geometry without the column.

Example

local grid = g.mesh.grid({ size = { x = 2, z = 2 }, cells = { x = 2, z = 2 } })
local copied = g.attribute.copy({ geometry = grid, name = "P", as = "rest" })
local removed = g.attribute.remove({ geometry = copied, class = "point", name = "rest" })