vc_plot_solid_spherical: Display stored spherical shells and optional angular cuts

View source: R/solid_spherical.R

vc_plot_solid_sphericalR Documentation

Display stored spherical shells and optional angular cuts

Description

Display stored spherical shells and optional angular cuts

Usage

vc_plot_solid_spherical(
  result,
  mode = c("faces", "wireframe", "both"),
  faces = c("radial_inner", "radial_outer"),
  opacity = 0.4,
  wire_step = 2L,
  title = NULL
)

Arguments

result

Result of vc_solid_spherical().

mode

Faces, wireframe or both.

faces

Named selection; default inner and outer radial shells. Use all stored names explicitly to include angular cut patches.

opacity

Surface opacity between zero and one.

wire_step

Positive integer stride for wire lines, retaining endpoints.

title

Optional character title.

Details

For a full shell, angular cuts are normally omitted and pole patches collapse. A ball's inner radius-zero shell collapses to the origin; select radial_outer alone if desired. For a restricted sector, select appropriate angular cuts explicitly. No automatic exterior-boundary union is computed.

Value

Plotly widget using unchanged Cartesian face/wire rendering, without boundary reevaluation or integration.

Examples

if(requireNamespace("plotly",quietly=TRUE)) {
  s <- vc_solid_spherical(function(t)0,function(t)pi,function(v)1,function(v)2,
    c(0,2*pi),n=12,n_u=8,n_v=2)
  vc_plot_solid_spherical(s,mode="both")
}

vectorialcalculus documentation built on Nov. 17, 2026, 1:09 a.m.