View source: R/surface_geometry.R
| vc_plot_surface | R Documentation |
Display a stored surface patch
vc_plot_surface(result, opacity = 0.6, show_curve = TRUE, title = NULL)
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. |
Plotly widget displaying the stored geometry. A single row or column is drawn as a line, and a single node as a point.
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()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.