View source: R/solid_cylindrical.R
| vc_plot_solid_cylindrical | R Documentation |
Display stored cylindrical-solid patches or wireframes
vc_plot_solid_cylindrical(
result,
mode = c("faces", "wireframe", "both"),
faces = names(result$faces),
opacity = 0.4,
wire_step = 2L,
title = NULL
)
result |
Result of vc_solid_cylindrical(). |
mode |
Faces, wireframe or both. |
faces |
Nonempty unique selection of stored physical face names. Angular cut patches remain selectable even for a full turn. |
opacity |
Surface opacity between zero and one. |
wire_step |
Positive integer stride for wire lines, retaining endpoints. |
title |
Optional character title. |
For a periodic full cylinder one can omit theta_min/theta_max and a degenerate radial_inner axis patch. A periodic annulus normally uses radial_inner, radial_outer, z_lower and z_upper. Caller chooses patches; this is not automatic boundary-union or normal-orientation analysis.
Plotly widget using unchanged face/wire renderer and stored Cartesian coordinates only. No geometry sampling, derivative or integral evaluation.
if(requireNamespace("plotly",quietly=TRUE)) {
s <- vc_solid_cylindrical(function(t)1,function(t)2,function(v)0,function(v)1,
c(0,2*pi),n=12,n_u=2,n_v=2)
vc_plot_solid_cylindrical(s,faces=c("radial_inner","radial_outer","z_lower","z_upper"))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.