View source: R/solid_spherical.R
| vc_plot_solid_spherical | R Documentation |
Display stored spherical shells and optional angular cuts
vc_plot_solid_spherical(
result,
mode = c("faces", "wireframe", "both"),
faces = c("radial_inner", "radial_outer"),
opacity = 0.4,
wire_step = 2L,
title = NULL
)
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. |
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.
Plotly widget using unchanged Cartesian face/wire rendering, without boundary reevaluation or integration.
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")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.