model.component(<ctag>).selection(<tag>) returns a named selection. Anywhere where you define a selection, you can point to a named selection by using its tag, for example,
selection.named(<tag>.
model.component(<ctag>).selection().create(<tag>) creates a named selection of type Explicit.
model.component(<ctag>).selection().create(<tag>,<type>) creates a named selection of type
<type>. The following types are available:
"Explicit", "Union",
"Intersection",
"Difference",
"Complement",
"Adjacent",
"Ball",
"Box",
"Cylinder",
"Disk", and
"LogicalExpression".
model.selection(<tag>).model(<mtag>) sets the model component node of the selection.
model.selection(<tag>).model() returns the model component node tag of the selection.
model.component(<ctag>).selection(<tag>).set(
property,
<value>) sets a property value for the selection. Which properties are available for the different selection types are listed on the following pages. All other assignment methods are only supported by the
Explicit selection type.
Use the model.selection(<tag>).image() methods for plotting and exporting selection images. See
Plotting and Exporting Images.
Other entities can use any of the selections in model.component(<ctag>).selection() when defining its selection. For example, create a selection
sel1:
When groupcontang is set to
on, the
set,
add, and
remove methods operate on groups of adjacent entities that have continuous tangents at their junctions.
The angletol property defines the tolerance for the continuity evaluation.
The posx,
posy, and
posz properties define the center of the ball, and
r defines the radius. These properties take their units from the corresponding geometry sequence.
When condition is
intersects, all entities that intersect the ball are included in the selection. The rendering mesh is used for the calculation. You can set the accuracy of the rendering mesh using
When condition is
inside, all entities that are completely inside the ball are included in the selection. The rendering mesh is used for the calculation.
When condition is
somevertex, all entities that have at least one adjacent vertex inside the ball are included in the selection.
When condition is
allvertices, all entities that have all adjacent vertices inside the ball are included in the selection.
When inputent is
selections, the selection is restricted to the entities in the selections defined by the input property. When
inputent is
all, all entities in the geometry are considered.
When groupcontang is set to
on, the selection operates on groups of entities that have continuous tangents at their junctions.
The angletol property defines the tolerance for the continuity evaluation.
The xmax,
xmin,
ymax,
ymin,
zmax, and
zmin properties define the box. These properties take their units from the corresponding geometry sequence.
When condition is
intersects, all entities that intersect the box are included in the selection. The rendering mesh is used for the calculation. You can set the accuracy of the rendering mesh using
When condition is
inside, all entities that are completely inside the box are included in the selection. The rendering mesh is used for the calculation.
When condition is
somevertex, all entities that have at least one adjacent vertex inside the box are included in the selection.
When condition is
allvertices, all entities that have all adjacent vertices inside the box are included in the selection.
When inputent is
selections, the selection is restricted to the entities in the selections defined by the input property. When
inputent is
all, all entities in the geometry are considered.
When groupcontang is set to
on, the selection operates on groups of entities that have continuous tangents at their junctions.
The angletol property defines the tolerance for the continuity evaluation.
The pos property defines the center of the cylinder and the
axis property defines the cylinder axis. The
top,
bottom,
r, and
rin properties define the size of the cylinder. Setting
rin equal to
r corresponds to a cylindrical surface. These properties take their units from the corresponding geometry sequence. Using the
angle1 and
angle2 properties, you can create a cylinder segment.
When condition is
intersects, all entities that intersect the cylinder are included in the selection. The rendering mesh is used for the calculation. You can set the accuracy of the rendering mesh using
When condition is
inside, all entities that are completely inside the cylinder are included in the selection. The rendering mesh is used for the calculation.
When condition is
somevertex, all entities that have at least one adjacent vertex inside the cylinder are included in the selection.
When condition is
allvertices, all entities that have all adjacent vertices inside the cylinder are included in the selection.
When inputent is
selections, the selection is restricted to the entities in the selections defined by the input property. When
inputent is
all, all entities in the geometry are considered.
When groupcontang is set to
on, the selection operates on groups of entities that have continuous tangents at their junctions.
The angletol property defines the tolerance for the continuity evaluation.
The posx and
posy properties define the center of the disk, and
r and
rin define the outer and inner radius, respectively. These properties take their units from the corresponding geometry sequence. Using the
angle1 and
angle2 properties, you can create a disk segment.
When condition is
intersects, all entities that intersect the disk are included in the selection. The rendering mesh is used for the calculation. You can set the accuracy of the rendering mesh using
When condition is
inside, all entities that are completely inside the disk are included in the selection. The rendering mesh is used for the calculation.
When condition is
somevertex, all entities that have at least one adjacent vertex inside the disk are included in the selection.
When condition is
allvertices, all entities that have all adjacent vertices inside the disk are included in the selection.
When inputent is
selections, the selection is restricted to the entities in the selections defined by the input property. When
inputent is
all, all entities in the geometry are considered.
When groupcontang is set to
on, the selection operates on groups of entities that have continuous tangents at their junctions.
The angletol property defines the tolerance for the continuity evaluation.
Define the selection equ1 as the domain of a rectangle and the selection
bnd1 as the boundary of the rectangle.