reflect_model_origin#

case.reflect_model_origin(p0: float, p1: float, p2: float) int#

Specify the model origin about which to reflect the newly added case

Default origin is 0., 0., 0.
Used with the “reflect_model_in” command.
Args:
p0:

‘x_comp’ x component of the origin (in model coordinates) about which to reflect the new case dataset

p1:

‘y_comp’ y component of the origin (in model coordinates) about which to reflect the new case dataset

p2:

‘z_comp’ z component of the origin (in model coordinates) about which to reflect the new case dataset

Examples:
ensight.case.create_viewport("ON")
ensight.case.apply_context("OFF")
ensight.case.reflect_model_in("'X'")
ensight.case.reflect_model_in("1.0000e+00 0.0000e+00 0.0000e+00")
ensight.case.add("Case 2")
ensight.case.select("Case 2")
ensight.viewport.select_begin(1)
Returns:

zero on success, non-zero on error