
Resample a stored shape or scatterer profile to a new segment count
Source:R/shape_manipulation.R
resample_shape.RdRe-discretize a shape or scatterer component along its x axis without rebuilding it from scratch.
Usage
resample_shape(
object,
n_segments,
component = NULL,
containment = c("warn", "error", "ignore")
)Arguments
- object
Shape or Scatterer object.
- n_segments
New number of intervals used to discretize the profile.
- 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".