vc_plot_solid_cylindrical: Display stored cylindrical-solid patches or wireframes

View source: R/solid_cylindrical.R

vc_plot_solid_cylindricalR Documentation

Display stored cylindrical-solid patches or wireframes

Description

Display stored cylindrical-solid patches or wireframes

Usage

vc_plot_solid_cylindrical(
  result,
  mode = c("faces", "wireframe", "both"),
  faces = names(result$faces),
  opacity = 0.4,
  wire_step = 2L,
  title = NULL
)

Arguments

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.

Details

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.

Value

Plotly widget using unchanged face/wire renderer and stored Cartesian coordinates only. No geometry sampling, derivative or integral evaluation.

Examples

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"))
}

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