add_splines#
- Plot3d.add_splines(
- *args,
- iframe='rtp',
- oframe='xyz',
- forder=True,
- v_name=None,
- **kwargs,
Add multiple splines (polylines) from stack-style 2D coordinate arrays.
Expects coordinate arrays shaped
(spline_len, num_splines). Each column defines a separate spline. Internally, this is converted into apyvista.PolyDatawith line cells connecting points within each spline.- Parameters:
- *args
(sx, sy, sz)or(sx, sy, sz, values)where each coordinate array is 2D with shape(spline_len, num_splines).- iframe, oframe{“rtp”, “xyz”}, optional
Input/output coordinate frames.
- forderbool, optional
Present for symmetry; stack conversion does not currently use forder.
- v_name
strorNone, optional Name for attached scalar data if values are provided. Note: depending on how
valuesis shaped/flattened upstream, it may represent either per-point or per-spline data.- **kwargs
Forwarded to
add_mesh().
- Returns:
AnyWhatever
pyvista.Plotter.add_points()returns.
- Raises:
ValueErrorIf coordinate arrays are not 2D with shape
(spline_len, num_splines).