label

open fun label(name: String): Labelled2d

Labels a shape, so that we can collect all the important labelled shapes, and ignore the others.


open fun label(name: String, type: String): Labelled2d

Labels a shape, so that we can collect all the important labelled shapes, and ignore the others.

The type allows you to label different kinds of things, for example, you could label all cut lumber with a type "wood", and other pieces with type "fixture" (for screws, hinges, handles etc). This example is clearly for 3D shapes; I couldn't think of a good example using 2D shapes.