SphericalSelectionRule#

class ansys.acp.core.SphericalSelectionRule(*, name='SphericalSelectionrule', use_global_coordinate_system=True, rosette=None, origin=(0.0, 0.0, 0.0), radius=0.0, relative_rule=False, include_rule=True)#

Instantiate a Spherical Selection Rule.

Parameters:
  • name (str) – Name of the Spherical Selection Rule.

  • use_global_coordinate_system (bool) – Use global coordinate system for origin and direction.

  • rosette (Rosette | None) – Rosette used for origin and direction. Only applies if use_global_coordinate_system is False.

  • origin (tuple[float, ...]) – Origin of the sphere.

  • radius (float) – Radius of the sphere.

  • relative_rule (bool) – If True, parameters are evaluated relative to size of the object.

  • include_rule (bool) – Include or exclude area in rule. Setting this to False inverts the selection.

Added in ACP server version 24.2.

Methods

SphericalSelectionRule.clone(*[, unlink])

Create a new unstored object with the same properties.

SphericalSelectionRule.delete()

Delete the object.

SphericalSelectionRule.store(parent)

Store the object on the server.

Attributes

Examples using SphericalSelectionRule#

Basic selection rules example

Basic selection rules example