View source: R/surface_geometry.R
| vc_surface_sample | R Documentation |
Sample a rectangular parameter patch in space
vc_surface_sample(surface, u_range, v_range, n_u = 31L, n_v = 31L)
surface |
Function of one vector c(u,v) returning a finite Cartesian three-vector. |
u_range, v_range |
Finite endpoint pairs in traversal order. |
n_u, n_v |
Number of nodes in each parameter, at least two. Equal endpoints produce a single node along that axis. |
List with type surface3d, parameter nodes u and v, and grid matrices x, y, z with v in rows and u in columns.
vc_surface_sample(function(p)c(p[1],p[2],prod(p)),c(0,1),c(0,1),n_u=3,n_v=3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.