
Locally widen, pinch, or taper a stored shape profile
Source:R/shape_manipulation.R
inflate_shape.RdApply a localized scaling window to a stored profile. Values of scale > 1
inflate the selected region, while scale < 1 pinch or taper it. For
canonical Shape objects, the result is returned as an Arbitrary shape
because the edited profile is no longer guaranteed to preserve the canonical
class geometry.
Arguments
- object
Shape or Scatterer object.
- x_range
Optional axial interval over which the local manipulation is applied.
- scale
Positive local scale factor.
- component
Optional component name for scatterers. Defaults to the primary geometry (
"body"for most scatterers and"shell"forESS).- axis
Which profile dimension to scale.
- profile
Local window profile.
"cosine"gives a smooth bump centered insidex_range,"linear"gives a triangular bump, and"box"applies a uniform factor inside the interval.- containment
Containment policy used when a moved swimbladder or backbone is checked against its body:
"warn","error", or"ignore".