SelectionHelper#

class ansys.mechanical.stubs.v242.Ansys.Mechanical.Selection.SelectionHelper#

Bases: object

SelectionHelper class.

Overview#

CreateVector3D

Creates a Vector3D object based on the given selection and reverse flag.

CastRayOnGeometry

Finds geometry entities intersecting input BoundVector and returns them in list of GeometryRayCastHit.

Method detail#

classmethod SelectionHelper.CreateVector3D(selection: Ansys.ACT.Interfaces.Common.ISelectionInfo, reversed: System.Boolean) Ansys.ACT.Math.Vector3D#
No-index:

Creates a Vector3D object based on the given selection and reverse flag.
    The direction is computed as the outward normal of a planar face, the direction between
    two nodes or vertices from the first to the second, or the axis of an edge.
    The reversed flag will return the opposite of the computed direction.
classmethod SelectionHelper.CastRayOnGeometry(castVector: Ansys.Mechanical.Math.BoundVector, settings: Ansys.Mechanical.Selection.GeometryRayCastSettings) System.Collections.Generic.IEnumerable[Ansys.Mechanical.Selection.GeometryRayCastHit]#
No-index:

Finds geometry entities intersecting input BoundVector and returns them in list of GeometryRayCastHit.
These are returned in the order they are hit, each item containing the entity and BoundVector normal to point hit.