Shift a Shape object or one geometry-bearing component of a Scatterer
without rebuilding it from scratch. This is most useful for re-centering
profiles, aligning a stored body to a preferred axial origin, or nudging an
internal component before model comparisons.
Usage
translate_shape(
object,
x_offset = 0,
y_offset = 0,
z_offset = 0,
component = NULL,
containment = c("warn", "error", "ignore")
)Arguments
- object
Shape or Scatterer object.
- x_offset
Along-axis translation (m).
- y_offset
Lateral translation (m). This is ignored for profile-style geometries that do not store an explicit lateral centerline.
- z_offset
Vertical translation (m).
- component
Optional component name for scatterers. Defaults to the primary geometry (
"body"for most scatterers and"shell"forESS).- containment
Containment policy used when a moved swimbladder or backbone is checked against its body:
"warn","error", or"ignore".
