Geometry > Selections of Geometric Entities > Cumulative Selections

Cumulative Selections
To create a cumulative selection tagged <seltag>, use
model.geom(<tag>).selection().create(<seltag>,"CumulativeSelection");
To make a geometry feature contribute its selection to a cumulative selection, use
model.geom(<tag>).feature(<ftag>).set("contributeto",<seltag>);
To remove the contribution of a geometry feature to a cumulative selection, use
model.geom(<tag>).feature(<ftag>).set("contributeto","none");
To control whether the cumulative selection is available outside the geometry sequence, use
model.geom(<tag>).selection(<seltag>).show(<boolean>);
To query whether the cumulative selection is available outside the geometry sequence, use
boolean show = model.geom(<tag>).selection(<seltag>).show();