BallSelection, BoxSelection, CylinderSelection, DiskSelection
Create selections of geometric entities that (partly) lie inside a ball, box, cylinder, or disk.
Syntax
model.component(<ctag>).mesh(<tag>).create(<ftag>,"BallSelection");
model.component(<ctag>).mesh(<tag>).create(<ftag>,"BoxSelection");
model.component(<ctag>).mesh(<tag>).create(<ftag>,"CylinderSelection");
model.component(<ctag>).mesh(<tag>).create(<ftag>,"DiskSelection");
model.component(<ctag>).mesh(<tag>).set(property,<value>);
model.component(<ctag>).mesh(<tag>).getType(property);
Description
The following general properties are available:
3 | 2 | 1 | 0
all | selections
intersects | inside | somevertex | allvertices
on | off
on | off
none | custom | integer between 1 and the number of colors in the current theme
The color to use. Active when color is set to custom.
For BallSelection, you define the ball using the following properties:
For BoxSelection, you define the box using the following properties:
For CylinderSelection, you define the cylinder using the following properties:
360 or 2*pi
x | y | z | cartesian | spherical
Type of axis or coordinate system used for axis. The value is synchronized with axis.
Direction of cylinder axis. Used when axistype is set to cartesian.
Direction of cylinder axis. Used when axistype is set to spherical.
For DiskSelection, you define the disk using the following properties:
You select the input entities to select among using the properties entitydim, inputent, and input. For a boundary or edge selection in 2D or 3D, you can force the selection to select whole groups of entities by setting the property groupcontang to on. Each group consists of adjacent entities that meet at an angle less than angletol.
The output entities/objects are determined by the property condition:
intersects: All entities that intersect the ball/box/cylinder/disk are included.
inside: All entities that are completely inside the ball/box/cylinder/disk are included.
somevertex: All entities that have at least one adjacent vertex inside the ball/box/cylinder/disk are included.
allvertices: All entities that have all adjacent vertices inside the ball/box/cylinder/disk are included.
See Also
UnionSelection, IntersectionSelection, DifferenceSelection, ComplementSelection, AdjacentSelection, ExplicitSelection