CSGModel
¤
Model for shape generation through Constructive Solid Geometry.
Parameters:
-
tree(dict) –The CSG tree as a dictionary mapping operations to operands. The operations have to be one of
{"union", "intersection", "difference"}. The operands have to be lists of shapes or lists of dicts that are CSG trees themselves. At every level of the tree, there can be only one operation. -
name(str) –The name of the model.
Attributes:
-
tree(dict) –The CSG tree as a dictionary mapping operations to operands. The operations have to be one of
{"union", "intersection", "difference"}. The operands have to be lists of shapes or lists of dicts that are CSG trees themselves. At every level of the tree, there can be only one operation.