vc_surface_sample: Sample a rectangular parameter patch in space

View source: R/surface_geometry.R

vc_surface_sampleR Documentation

Sample a rectangular parameter patch in space

Description

Sample a rectangular parameter patch in space

Usage

vc_surface_sample(surface, u_range, v_range, n_u = 31L, n_v = 31L)

Arguments

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.

Value

List with type surface3d, parameter nodes u and v, and grid matrices x, y, z with v in rows and u in columns.

Examples

vc_surface_sample(function(p)c(p[1],p[2],prod(p)),c(0,1),c(0,1),n_u=3,n_v=3)

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