Selections
Most mesh features have selections, to specify where they operate. To access a feature’s selection, use the syntax
model.component(<ctag>).mesh(<tag>).feature(<ftag>).selection();
To specify the entire geometry, write
model.component(<ctag>).mesh(<tag>).feature(<ftag>).selection().allgeom();
To specify all geometric entities in dimension <dim>, write
model.component(<ctag>).mesh(<tag>).feature(<ftag>).selection().geom(<dim>).all();
To specify the geometric entities that remains to be meshed when the feature is about to be built, use
model.component(<ctag>).mesh(<tag>).feature(<ftag>).selection().remaining();
It is not possible to retrieve the geometric entities of this selection, unless the feature is built.
If entities is an integer array of geometric entities in dimension dim, use the following syntax to select these entities
model.component(<ctag>).mesh(<tag>).feature(<ftag>).selection().geom(dim).set(entities);
For example, to selection domain 1 and 2 in a 3D geometry, write
model.component(<ctag>).mesh(<tag>).feature(<ftag>).selection().geom(3).
      set(new int[]{1,2});
To add the geometric entities specified in the integer array <entities> in dimension <dim> to the selection, write
model.component(<ctag>).mesh(<tag>).feature(<ftag>).selection().geom(<dim>).
      add(<entities>);
To remove the geometric entities specified in the integer array <entities> in dimension <dim> from the selection, write
model.component(<ctag>).mesh(<tag>).feature(<ftag>).selection().geom(<dim>).
      remove(<entities>);
To clear the selection in dimension <dim>, write
model.component(<ctag>).mesh(<tag>).feature(<ftag>).selection().geom(<dim>).clear();
Some features have more than one selection, for example sweep, where it is possible to specify source and destination faces. Use the following syntax to access these selections.
model.component(<ctag>).mesh(<tag>).feature(<ftag>).selection(<property>);
Thus, to specify boundary 5 as source face on the sweep feature swe1, write
model.component(<ctag>).mesh(<tag>).feature(<ftag>).selection("sourceface").
      geom(2).set(5);