vc_plot_surface: Display a stored surface patch

View source: R/surface_geometry.R

vc_plot_surfaceR Documentation

Display a stored surface patch

Description

Display a stored surface patch

Usage

vc_plot_surface(result, opacity = 0.6, show_curve = TRUE, title = NULL)

Arguments

result

Result of vc_surface_sample() or vc_cylindrical_surface().

opacity

Surface opacity from zero to one.

show_curve

Show the stored generating curve when available.

title

Optional character title.

Value

Plotly widget displaying the stored geometry. A single row or column is drawn as a line, and a single node as a point.

Examples

if (requireNamespace("plotly",quietly=TRUE)) {
  vc_surface_sample(function(p)c(p[1],p[2],prod(p)),c(0,1),c(0,1)) |>
    vc_plot_surface()
}

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