vc_plot_solid_cartesian: Display stored Cartesian solid faces or wireframes

View source: R/solid_cartesian.R

vc_plot_solid_cartesianR Documentation

Display stored Cartesian solid faces or wireframes

Description

Display stored Cartesian solid faces or wireframes

Usage

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

Arguments

result

Result of vc_solid_cartesian().

mode

Faces, wireframe or both.

faces

Nonempty unique character subset of stored face names.

opacity

Surface opacity between zero and one.

wire_step

Positive integer stride for wire lines, retaining endpoints.

title

Optional character title.

Details

Wire rows/columns use the stored parameter grids. Faces can be selected independently. Interpolation is a display approximation; normal orientation, manifold structure and exact closure are not certified.

Value

Plotly widget consuming stored face data only. No boundary evaluation, integral calculation or automatic internal slices are performed.

Examples

if(requireNamespace("plotly",quietly=TRUE)) {
  s <- vc_solid_cartesian(function(x)0,function(x)1,function(v)0,
    function(v)1,c(0,1),n=2,n_u=2,n_v=2)
  vc_plot_solid_cartesian(s,mode="both")
}

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