Public Member Functions | List of all members
Selection Class Reference

Selection class is used to select parts or elements for condition settings.
The class can be called from Model class, CalculationDefinition class, Condition class, MeshGroup class, and Set class.
. More...

Public Member Functions

void Add (Selection *selection)
 Adds a second selection to this selection. Both selections must share the same model.
 
void Attach ()
 Turns on the highlight function for the selected area.
 
void Clear ()
 Clears the selection.
 
void Detach ()
 Turns off the highlight function for the selected area.
 
int EdgeID (int index)
 Returns the selected edge ID. More...
 
int ElementEdgeElementID (int index)
 Returns the element ID of the selected element edge. More...
 
int ElementEdgeIndex (int index)
 Returns the edge index of the selected element edge. More...
 
int ElementFaceElementID (int index)
 Returns the element ID of the selected element face. More...
 
int ElementFaceIndex (int index)
 Returns the face index of the selected element face. More...
 
int ElementID (int index)
 Returns the selected element ID. More...
 
int FaceID (int index)
 Returns the selected face ID. More...
 
PartGetPart (int index)
 Returns the selected part object. More...
 
bool IsAttached ()
 Returns the ON / OFF state of the highlight feature for the selected area. More...
 
bool IsValid ()
 Returns True if an object is valid. More...
 
int NodeID (int index)
 Returns the selected node ID. More...
 
int NumEdges ()
 Returns the number of selected edges as an integer. More...
 
int NumElementEdges ()
 Returns the number of selected element edges as an integer. More...
 
int NumElementFaces ()
 Returns the number of selected element faces as an integer. More...
 
int NumElements ()
 Returns the number of selected elements as an integer. More...
 
int NumFaces ()
 Returns the numbers of selected faces as an integer. More...
 
int NumNodes ()
 Returns the number of selected nodes as an integer. More...
 
int NumParts ()
 Returns the number of selected parts as an integer. More...
 
int NumVertices ()
 Returns the number of selected nodes as an integer. More...
 
int PartID (int index)
 Returns the identifier of the the part with specified index from among the selected parts. Returns -1 when an unused index is specified. More...
 
void SelectEdge (int edgeId)
 Selects an edge by specifying ID. More...
 
void SelectEdgeByCylinder (Point *center, Point *center_axis, Point *x_axis, double inner, double outer, double startAngle, double endAngle, bool is_useheight, double top, double bottom, bool visible)
 Selects edges included in a region by specifying a round or cylindrical region. More...
 
void SelectEdgeByCylinderObject (Cylinder *cylinder, bool visible)
 Selects edges included in a region by specifying a round or cylindrical region. More...
 
void SelectEdgeByPosition (double x, double y, double z)
 Selects an edge that includes the point, by specifying coordinates. More...
 
void SelectEdgeByRange (Point *lower, Point *upper, bool visible)
 Selects edges by a rectangle from two specified points. More...
 
void SelectElement (int elementId)
 Selects elements by specifying Id. More...
 
void SelectElementByCylinder (Point *center, Point *center_axis, Point *x_axis, double inner, double outer, double startAngle, double endAngle, bool is_useheight, double top, double bottom, bool visible)
 Selects elements included in a region by specifying a round or cylindrical region. More...
 
void SelectElementByCylinderObject (Cylinder *cylinder, bool visible)
 Selects elements included in a region by specifying a round or cylindrical region. More...
 
void SelectElementByPosition (double x, double y, double z)
 Selects an element including the position by specifying coordinates. More...
 
void SelectElementByRange (Point *lower, Point *upper, bool visible)
 Selects elements by a rectangle from two specified points. More...
 
void SelectElementEdge (int elementId, int index)
 Selects element edge by specifying element ID and edge number. More...
 
void SelectElementEdgeByCylinder (Point *center, Point *center_axis, Point *x_axis, double inner, double outer, double startAngle, double endAngle, bool is_useheight, double top, double bottom, bool visible)
 Selects element edges included in a region by specifying a round or cylindrical region. More...
 
void SelectElementEdgeByCylinderObject (Cylinder *cylinder, bool visible)
 Selects element edges included in a region by specifying a round or cylindrical region. More...
 
void SelectElementEdgeByPosition (double x, double y, double z)
 Selects an element edge that passes the point by specifying coordinates. More...
 
void SelectElementEdgeByRange (Point *lower, Point *upper, bool visible)
 Selects element edges by a rectangle from two specified points. More...
 
void SelectElementFace (int elementId, int index)
 Selects element face by specifying element ID and face number. More...
 
void SelectElementFaceByCylinder (Point *center, Point *center_axis, Point *x_axis, double inner, double outer, double startAngle, double endAngle, bool is_useheight, double top, double bottom, bool visible)
 Selects element faces included in a region by specifying a round or cylindrical region. More...
 
void SelectElementFaceByCylinderObject (Cylinder *cylinder, bool visible)
 Selects element faces included in a region by specifying a round or cylindrical region. More...
 
void SelectElementFaceByPosition (double x, double y, double z)
 Selects an element face including the position by specifying coordinates. More...
 
void SelectElementFaceByRange (Point *lower, Point *upper, bool visible)
 Selects element faces by a rectangle from two specified points. More...
 
void SelectFace (int faceId)
 Selects a face by specifying ID. More...
 
void SelectFaceByCylinder (Point *center, Point *center_axis, Point *x_axis, double inner, double outer, double startAngle, double endAngle, bool is_useheight, double top, double bottom, bool visible)
 Selects faces included in a region by specifying a round or cylindrical range. More...
 
void SelectFaceByCylinderObject (Cylinder *cylinder, bool visible)
 Selects faces included in a region by specifying a round or cylindrical region. More...
 
void SelectFaceByPosition (double x, double y, double z)
 Selects a face that includes the the point by specifying coordinates. More...
 
void SelectFaceByRange (Point *lower, Point *upper, bool visible)
 Selects faces by a rectangle from two specified points. More...
 
void SelectNode (int nodeId)
 Selects node by specifying ID. More...
 
void SelectNodeByCylinder (Point *center, Point *center_axis, Point *x_axis, double inner, double outer, double startAngle, double endAngle, bool is_useheight, double top, double bottom, bool visible)
 Selects nodes included in a region by specifying a round or cylindrical region. More...
 
void SelectNodeByCylinderObject (Cylinder *cylinder, bool visible)
 Selects vertices included in a region by specifying a round or cylindrical region. More...
 
void SelectNodeByPosition (double x, double y, double z)
 Selects a node by specifying coordinates. More...
 
void SelectNodeByRange (Point *lower, Point *upper, bool visible)
 Selects nodes by a rectangle from two specified points. More...
 
void SelectPart (Variant &val)
 Selects a part by specifying a name or ID. More...
 
void SelectPartByCylinder (Point *center, Point *center_axis, Point *x_axis, double inner, double outer, double startAngle, double endAngle, bool is_useheight, double top, double bottom, bool visible)
 Selects parts included within a region by specifying a round or cylindrical area. More...
 
void SelectPartByCylinderObject (Cylinder *cylinder, bool visible)
 Selects parts included in a region by specifying a round or cylindrical region. More...
 
void SelectPartByPosition (double x, double y, double z)
 Selects a part that includes the point by specifying coordinates. More...
 
void SelectPartByRange (Point *lower, Point *upper, bool visible)
 Selects parts by a rectangle from two specified points. More...
 
void SelectVertex (int vertexId)
 Selects a vertex by specifying ID. More...
 
void SelectVertexByCylinder (Point *center, Point *center_axis, Point *x_axis, double inner, double outer, double startAngle, double endAngle, bool is_useheight, double top, double bottom, bool visible)
 Selects vertices included in a region by specifying a round or cylindrical region. More...
 
void SelectVertexByCylinderObject (Cylinder *cylinder, bool visible)
 Selects vertices included in a region by specifying a round or cylindrical region. More...
 
void SelectVertexByPosition (double x, double y, double z)
 Selects the vertex by specifying coordinates. More...
 
void SelectVertexByRange (Point *lower, Point *upper, bool visible)
 Selects vertices by a rectangle from two specified points. More...
 
void SetBlockUpdateView (bool block)
 Specifies whether to redraw the graphics window or not. The default is False. More...
 
int VertexID (int index)
 Returns the selected vertex ID. More...
 

Detailed Description

Selection class is used to select parts or elements for condition settings.
The class can be called from Model class, CalculationDefinition class, Condition class, MeshGroup class, and Set class.
.

Example of calling a class object:

app.GetModel(0).CreateSelection()

Example of using the function of this class:
This class has some functions that needs to execute Attach() beforehand.

Set sel = app.GetModel("2D_PM_motor").GetStudy("2D_PM_motor_load").GetCondition("PBC").GetSelection()
Set lower = app.CreatePoint(7.5,-0.1,0.0)
Set upper = app.CreatePoint(27.6,0.1,0.0)
Call sel.Attach()
Call sel.SelectEdgeByRange(lower,upper,1)
'Call sel.SelectEdgeByRange((7.5,-1.0,0.0),(27.1,1.0,0.0),1)
Call app.GetModel("2D_PM_motor").GetStudy("2D_PM_motor_load").GetCondition("PBC").AddSelected(sel)


See the description of the Application class for CreatePoint() .
ID of parts, elements, and nodes can be confirmed in the main window by selecting [View] > [ID] from JMAG-Designer menu.

Member Function Documentation

int Selection::EdgeID ( int  index)

Returns the selected edge ID.

Parameters
indexThe index of the selected edge. 0 <= index < NumEdges()
int Selection::ElementEdgeElementID ( int  index)

Returns the element ID of the selected element edge.

Parameters
indexThe index of the selected element edge. 0 <= index < NumElementEdges()
int Selection::ElementEdgeIndex ( int  index)

Returns the edge index of the selected element edge.

Parameters
indexThe index of the selected element edge. 0 <= index < NumElementEdges()
int Selection::ElementFaceElementID ( int  index)

Returns the element ID of the selected element face.

Parameters
indexThe index of the selected element face. 0 <= index < NumElementFaces()
int Selection::ElementFaceIndex ( int  index)

Returns the face index of the selected element face.

Parameters
indexThe index of the selected element face. 0 <= index < NumElementFaces()
int Selection::ElementID ( int  index)

Returns the selected element ID.

Parameters
indexThe index of the selected element. 0 <= index < NumElements()
int Selection::FaceID ( int  index)

Returns the selected face ID.

Parameters
indexThe index of the selected face. 0 <= index < NumFaces()
Part * Selection::GetPart ( int  index)

Returns the selected part object.

Parameters
indexThe index of the selected part. 0 <= index < NumParts()
bool Selection::IsAttached ( )

Returns the ON / OFF state of the highlight feature for the selected area.

Returns
Whether or not the highlight feature is enabled
bool Selection::IsValid ( )

Returns True if an object is valid.

Returns
A value indicating whether or not the Selection objects in the list are valid
int Selection::NodeID ( int  index)

Returns the selected node ID.

Parameters
indexThe index of the selected node. 0 <= index < NumNodes()
int Selection::NumEdges ( )

Returns the number of selected edges as an integer.

Returns
Number of selected edges
int Selection::NumElementEdges ( )

Returns the number of selected element edges as an integer.

Returns
Number of selected element edges
int Selection::NumElementFaces ( )

Returns the number of selected element faces as an integer.

Returns
Number of selected element faces
int Selection::NumElements ( )

Returns the number of selected elements as an integer.

Returns
Number of selected elements
int Selection::NumFaces ( )

Returns the numbers of selected faces as an integer.

Returns
Number of selected faces
int Selection::NumNodes ( )

Returns the number of selected nodes as an integer.

Returns
Number of selected nodes
int Selection::NumParts ( )

Returns the number of selected parts as an integer.

Returns
Number of selected parts
int Selection::NumVertices ( )

Returns the number of selected nodes as an integer.

Returns
Number of selected nodes
int Selection::PartID ( int  index)

Returns the identifier of the the part with specified index from among the selected parts. Returns -1 when an unused index is specified.

Parameters
indexThe index of the selected part. 0 <= index < NumParts()
void Selection::SelectEdge ( int  edgeId)

Selects an edge by specifying ID.

Parameters
edgeIdEdge ID
void Selection::SelectEdgeByCylinder ( Point center,
Point center_axis,
Point x_axis,
double  inner,
double  outer,
double  startAngle,
double  endAngle,
bool  is_useheight,
double  top,
double  bottom,
bool  visible 
)

Selects edges included in a region by specifying a round or cylindrical region.

Parameters
centerCenter position
center_axisCenter position of an axis
x_axisX-axis position
innerInternal radius
outerOuter radius
startAngleStart angle
endAngleEnd angle
is_useheightWhether to use the height
topThe top of the height
bottomThe bottom of the height
visible
0: Selects hidden targets
1: Do not select hidden targets
Precondition
Selecting an object with this function is effective only when running Attach() beforehand.
void Selection::SelectEdgeByCylinderObject ( Cylinder cylinder,
bool  visible 
)

Selects edges included in a region by specifying a round or cylindrical region.

Parameters
cylinderCylinder object
visible
0: Selects hidden targets
1: Do not select hidden targets
Precondition
Selecting an object with this function is effective only when running Attach() beforehand.
void Selection::SelectEdgeByPosition ( double  x,
double  y,
double  z 
)

Selects an edge that includes the point, by specifying coordinates.

Parameters
xX-coordinate
yY-coordinate
zZ-coordinate
void Selection::SelectEdgeByRange ( Point lower,
Point upper,
bool  visible 
)

Selects edges by a rectangle from two specified points.

Parameters
lowerCoordinates of first point (x, y, z) is specified with Point type.
upperCoordinates of second point (x, y, z) is specified with Point type.
visible
0: Selects hidden targets
1: Do not select hidden targets
Precondition
Selecting an object with this function is effective only when running Attach() beforehand.
void Selection::SelectElement ( int  elementId)

Selects elements by specifying Id.

Parameters
elementIdElement ID
void Selection::SelectElementByCylinder ( Point center,
Point center_axis,
Point x_axis,
double  inner,
double  outer,
double  startAngle,
double  endAngle,
bool  is_useheight,
double  top,
double  bottom,
bool  visible 
)

Selects elements included in a region by specifying a round or cylindrical region.

Parameters
centerCenter position
center_axisThe center position of the axis
x_axisX-axis position
innerInternal radius
outerOuter radius
startAngleStart angle
endAngleEnd angle
is_useheightWhether or not to use height
topTop of height
bottomBottom of height
visible
0: Selects hidden targets
1: Do not select hidden targets
Precondition
Selecting an object with this function is effective only when running Attach() beforehand.
void Selection::SelectElementByCylinderObject ( Cylinder cylinder,
bool  visible 
)

Selects elements included in a region by specifying a round or cylindrical region.

Parameters
cylinderCylinder object
visible
0: Selects hidden targets
1: Do not select hidden targets
Precondition
Selecting an object with this function is effective only when running Attach() beforehand.
void Selection::SelectElementByPosition ( double  x,
double  y,
double  z 
)

Selects an element including the position by specifying coordinates.

Parameters
xX-coordinate
yY-coordinate
zZ-coordinate
Precondition
Selecting an object with this function is effective only when running Attach() beforehand.
void Selection::SelectElementByRange ( Point lower,
Point upper,
bool  visible 
)

Selects elements by a rectangle from two specified points.

Parameters
lowerCoordinates of first point (x, y, z)
upperCoordinates of second point (x, y, z)
visible
0: Selects hidden targets
1: Do not select hidden targets
Precondition
Selecting an object with this function is effective only when running Attach() beforehand.
void Selection::SelectElementEdge ( int  elementId,
int  index 
)

Selects element edge by specifying element ID and edge number.

Parameters
elementIdElement ID
indexEdge number
void Selection::SelectElementEdgeByCylinder ( Point center,
Point center_axis,
Point x_axis,
double  inner,
double  outer,
double  startAngle,
double  endAngle,
bool  is_useheight,
double  top,
double  bottom,
bool  visible 
)

Selects element edges included in a region by specifying a round or cylindrical region.

Parameters
centerCenter position
center_axisCenter position of axis
x_axisX-axis position
innerInner radius
outerOuter radius
startAngleStart angle
endAngleEnd angle
is_useheightWhether or not to use height
topTop of height
bottomBottom of height
visible
0: Selects hidden targets
1: Do not select hidden targets
Precondition
Selecting an object with this function is effective only when running Attach() beforehand.
void Selection::SelectElementEdgeByCylinderObject ( Cylinder cylinder,
bool  visible 
)

Selects element edges included in a region by specifying a round or cylindrical region.

Parameters
cylinderCylinder object
visible
0: Selects hidden targets
1: Do not select hidden targets
Precondition
Selecting an object with this function is effective only when running Attach() beforehand.
void Selection::SelectElementEdgeByPosition ( double  x,
double  y,
double  z 
)

Selects an element edge that passes the point by specifying coordinates.

Parameters
xX-coordinate
yY-coordinate
zZ-coordinate
Precondition
Selecting an object with this function is effective only when running the Attach() beforehand.
void Selection::SelectElementEdgeByRange ( Point lower,
Point upper,
bool  visible 
)

Selects element edges by a rectangle from two specified points.

Parameters
lowerCoordinates of first point (x, y, z)
upperCoordinates of second point (x, y, z)
visible
0: Selects hidden targets
1: Do not select hidden targets
Precondition
Selecting an object with this function is effective only when running Attach() beforehand.
void Selection::SelectElementFace ( int  elementId,
int  index 
)

Selects element face by specifying element ID and face number.

Parameters
elementIdElement ID
indexFace number
void Selection::SelectElementFaceByCylinder ( Point center,
Point center_axis,
Point x_axis,
double  inner,
double  outer,
double  startAngle,
double  endAngle,
bool  is_useheight,
double  top,
double  bottom,
bool  visible 
)

Selects element faces included in a region by specifying a round or cylindrical region.

Parameters
centerCenter position
center_axisCenter position of an axis
x_axisX-axis position
innerInner radius
outerOuter radius
startAngleStart angle
endAngleEnd angle
is_useheightWhether or not to use height
topTop of height
bottomBottom of height
visible
0: Selects hidden targets
1: Do not select hidden targets
Precondition
Selecting an object with this function is effective only when running Attach() beforehand.
void Selection::SelectElementFaceByCylinderObject ( Cylinder cylinder,
bool  visible 
)

Selects element faces included in a region by specifying a round or cylindrical region.

Parameters
cylinderCylinder object
visible
0: Selects hidden targets
1: Do not select hidden targets
Precondition
Selecting an object with this function is effective only when running Attach() beforehand.
void Selection::SelectElementFaceByPosition ( double  x,
double  y,
double  z 
)

Selects an element face including the position by specifying coordinates.

Parameters
xX-coordinate
yY-coordinate
zZ-coordinate
Precondition
Selecting an object with this function is effective only when running Attach() beforehand.
void Selection::SelectElementFaceByRange ( Point lower,
Point upper,
bool  visible 
)

Selects element faces by a rectangle from two specified points.

Parameters
lowerCoordinates of first point (x, y, z)
upperCoordinates of second point (x, y, z)
visible
0: Selects hidden targets
1: Do not select hidden targets
Precondition
Selecting an object with this function is effective only when running Attach() beforehand.
void Selection::SelectFace ( int  faceId)

Selects a face by specifying ID.

Parameters
faceIdFace ID
void Selection::SelectFaceByCylinder ( Point center,
Point center_axis,
Point x_axis,
double  inner,
double  outer,
double  startAngle,
double  endAngle,
bool  is_useheight,
double  top,
double  bottom,
bool  visible 
)

Selects faces included in a region by specifying a round or cylindrical range.

Parameters
centerCenter position
center_axisCenter position of an axis
x_axisX-axis position
innerInner radius
outerOuter radius
startAngleStart angle
endAngleEnd angle
is_useheightWhether or now to use height
topTop of height
bottomBottom of height
visible
0: Selects hidden targets
1: Do now select hidden targets
Precondition
Selecting an object with this function is effective only when running Attach() beforehand.
void Selection::SelectFaceByCylinderObject ( Cylinder cylinder,
bool  visible 
)

Selects faces included in a region by specifying a round or cylindrical region.

Parameters
cylinderCylinder object
visible
0: Selects hidden targets
1: Do not select hidden targets
Precondition
Selecting an object with this function is effective only when running Attach() beforehand.
void Selection::SelectFaceByPosition ( double  x,
double  y,
double  z 
)

Selects a face that includes the the point by specifying coordinates.

Parameters
xX-coordinate
yY-coordinate
zZ-coordinate
void Selection::SelectFaceByRange ( Point lower,
Point upper,
bool  visible 
)

Selects faces by a rectangle from two specified points.

Parameters
lowerCoordinates of first point (x, y, z)
upperCoordinates of second point (x, y, z)
visible
0: Selects hidden targets
1: Do not select hidden targets
Precondition
Selecting an object with this function is effective only when running Attach() beforehand.
void Selection::SelectNode ( int  nodeId)

Selects node by specifying ID.

Parameters
nodeIdNode ID
void Selection::SelectNodeByCylinder ( Point center,
Point center_axis,
Point x_axis,
double  inner,
double  outer,
double  startAngle,
double  endAngle,
bool  is_useheight,
double  top,
double  bottom,
bool  visible 
)

Selects nodes included in a region by specifying a round or cylindrical region.

Parameters
centerCenter position
center_axisCenter position of axis
x_axisX-axis position
innerInner radius
outerOuter radius
startAngleStart angle
endAngleEnd angle
is_useheightWhether or not to use height
topTop of height
bottomBottom of height
visible
0: Selects hidden targets
1: Do not select hidden targets
Precondition
Selecting an object with this function is effective only when running Attach() beforehand.
void Selection::SelectNodeByCylinderObject ( Cylinder cylinder,
bool  visible 
)

Selects vertices included in a region by specifying a round or cylindrical region.

Parameters
cylinderCylinder object
visible
0: Selects hidden targets
1: Do not select hidden targets
Precondition
Selecting an object with this function is effective only when running Attach() beforehand.
void Selection::SelectNodeByPosition ( double  x,
double  y,
double  z 
)

Selects a node by specifying coordinates.

Parameters
xX-coordinate
yY-coordinate
zZ-coordinate
Precondition
Selecting an object with this function is effective only when running Attach() beforehand.
void Selection::SelectNodeByRange ( Point lower,
Point upper,
bool  visible 
)

Selects nodes by a rectangle from two specified points.

Parameters
lowerCoordinates of first point (x, y, z)
upperCoordinates of second point (x, y, z)
visible
0: Selects hidden targets
1: Do not select hidden targets
Precondition
Selecting an object with this function is effective only when running Attach() beforehand.
void Selection::SelectPart ( Variant &  val)

Selects a part by specifying a name or ID.

Parameters
valPart name or ID
void Selection::SelectPartByCylinder ( Point center,
Point center_axis,
Point x_axis,
double  inner,
double  outer,
double  startAngle,
double  endAngle,
bool  is_useheight,
double  top,
double  bottom,
bool  visible 
)

Selects parts included within a region by specifying a round or cylindrical area.

Parameters
centerCenter position
center_axisThe center position of an axis
x_axisX-axis position
innerInner radius
outerOuter radius
startAngleStart angle
endAngleEnd angle
is_useheightWhether or not to use height
topTop of height
bottomBottom of height
visible
0: Selects hidden targets
1: Do not select hidden targets
Precondition
Selecting an object with this function is effective only when running Attach() beforehand.
void Selection::SelectPartByCylinderObject ( Cylinder cylinder,
bool  visible 
)

Selects parts included in a region by specifying a round or cylindrical region.

Parameters
cylinderCylinder object
visible
0: Selects hidden targets
1: DO not select hidden targets
Precondition
Selecting an object with this function is effective only when running Attach() beforehand.
void Selection::SelectPartByPosition ( double  x,
double  y,
double  z 
)

Selects a part that includes the point by specifying coordinates.

Parameters
xX-coordinate
yY-coordinate
zZ-coordinate
Precondition
You cannot select air regions with SelectPartByPosition. Use SelectWorldPos to select air regions.
void Selection::SelectPartByRange ( Point lower,
Point upper,
bool  visible 
)

Selects parts by a rectangle from two specified points.

Parameters
lowerCoordinates of first point (x, y, z)
upperCoordinates of second point (x, y, z)
visible
0: Selects hidden targets
1: Do not select hidden targets
Precondition
Selecting an object with this function is effective only when running Attach() beforehand.
void Selection::SelectVertex ( int  vertexId)

Selects a vertex by specifying ID.

Parameters
vertexIdVertex ID
void Selection::SelectVertexByCylinder ( Point center,
Point center_axis,
Point x_axis,
double  inner,
double  outer,
double  startAngle,
double  endAngle,
bool  is_useheight,
double  top,
double  bottom,
bool  visible 
)

Selects vertices included in a region by specifying a round or cylindrical region.

Parameters
centerCenter position
center_axisCenter position of an axis
x_axisX-axis position
innerInner radius
outerOuter radius
startAngleStart angle
endAngleEnd angle
is_useheightWhether or not to use height
topTop of height
bottomBottom of height
visible
0: Selects hidden targets
1: Do not select hidden targets
Precondition
Selecting an object with this function is effective only when running Attach() beforehand.
void Selection::SelectVertexByCylinderObject ( Cylinder cylinder,
bool  visible 
)

Selects vertices included in a region by specifying a round or cylindrical region.

Parameters
cylinderCylinder object
visible
0: Selects hidden targets
1: Do not select hidden targets
Precondition
Selecting an object with this function is effective only when running Attach() beforehand.
void Selection::SelectVertexByPosition ( double  x,
double  y,
double  z 
)

Selects the vertex by specifying coordinates.

Parameters
xX-coordinate
yY-coordinate
zZ-coordinate
void Selection::SelectVertexByRange ( Point lower,
Point upper,
bool  visible 
)

Selects vertices by a rectangle from two specified points.

Parameters
lowerCoordinates of first point (x, y, z) is specified with Point type.
upperCoordinates of second point (x, y, z) is specified with Point type.
visible
0: Selects hidden targets
1: Do not select hidden targets
Precondition
Selecting an object with this function is effective only when running Attach() beforehand.
void Selection::SetBlockUpdateView ( bool  block)

Specifies whether to redraw the graphics window or not. The default is False.

Parameters
blockIf block is True the graphics window is not redrawn after each method execution.
int Selection::VertexID ( int  index)

Returns the selected vertex ID.

Parameters
indexThe index of the selected vertex. 0 <= index < NumVertices()