
add_shape_descriptors() method for bundle objects
Source: R/shape.R
add_shape_descriptors-fiber-bundle-method.RdAdds shape descriptors to a bundle. Scalar descriptors
(euclidean_length, curvilinear_length, sinuosity) are stored as
length-S vectors in bundle@streamline_data. Per-point descriptors
(curvature, torsion) are stored in each individual streamline's
@point_data. Both are accessible via the subsetting push-down
(bundle[[i]]).
Arguments
- x
A bundle object.
- descriptors
A character vector of shape descriptors to add. Defaults to all available descriptors:
c("euclidean_length", "curvilinear_length", "sinuosity", "curvature", "torsion").
Value
A bundle with the specified shape descriptors added.