RASurface#
- class ansys.rocky.app.ra_surface.RASurface#
Bases:
ansys.rocky.app.ra_base_geometry.RABaseGeometry,ansys.rocky.app._ra_orientation_mixin._RAOrientationMixin,ansys.rocky.app.motion._with_movement_mixin._WithMovementMixinRocky API “Surface” model.
Overview#
Whether the geometry is linked to a motion frame. |
|
Get the value of “Translation”. |
|
Set the values of “Translation”. |
|
Get the value of “Invert Normal”. |
|
Set the value of “Invert Normal”. |
|
Get the value of “Name”. |
|
Set the value of “Name”. |
|
Get the value of “Pivot Point”. |
|
Set the values of “Pivot Point”. |
Import detail#
from ansys.rocky.app.ra_surface import RASurface
Method detail#
- RASurface.HasMotionFrame() bool#
Whether the geometry is linked to a motion frame.
- Returns:
True if geometry is linked to a motion frame False otherwise
- RASurface.GetTranslation(unit: str | None = None) list[float]#
Get the value of “Translation”.
- Parameters:
unit – The unit for the returned values. If no unit is provided, the returned values will be in “m”.
- RASurface.SetTranslation(values: collections.abc.Sequence[str | float], unit: str | None = None) None#
Set the values of “Translation”.
- Parameters:
values – The values to set. The values can be heterogeneous, the element of values can be an expression with input variables or a float. Must have exactly 3 elements.
unit – The unit for values. If no unit is provided, values is assumed to be in “m”.
- Raises:
RockyApiError – If values doesn’t have exactly 3 elements.
- RASurface.SetInvertNormal(value: bool) None#
Set the value of “Invert Normal”.
- Parameters:
value – The value to set.
- RASurface.GetPivotPoint(unit: str | None = None) list[float]#
Get the value of “Pivot Point”.
- Parameters:
unit – The unit for the returned values. If no unit is provided, the returned values will be in “m”.
- RASurface.SetPivotPoint(values: collections.abc.Sequence[str | float], unit: str | None = None) None#
Set the values of “Pivot Point”.
- Parameters:
values – The values to set. The values can be heterogeneous, the element of values can be an expression with input variables or a float. Must have exactly 3 elements.
unit – The unit for values. If no unit is provided, values is assumed to be in “m”.
- Raises:
RockyApiError – If values doesn’t have exactly 3 elements.