View source: R/surface_geometry.R
| vc_cylindrical_surface | R Documentation |
Sample a cylindrical surface generated by parallel straight rulings
vc_cylindrical_surface(
curve,
interval,
s_range,
direction,
n_t = 31L,
n_s = 11L
)
curve |
Function of one scalar parameter returning a finite real three-vector in Cartesian x,y,z order. |
interval |
Two finite parameter endpoints. Reversed endpoints reverse the sample order. Equal endpoints produce one sample. |
s_range |
Finite ruling distances in traversal order. |
direction |
Nonzero Cartesian vector, normalized before use. |
n_t, n_s |
Number of nodes along the generating curve and rulings. |
The surface is curve(t) + s times the unit direction. The generating curve may be noncircular. Negative s is allowed.
Surface sample with u as curve parameter and v as ruling distance, plus the stored generating curve and unit ruling direction.
vc_cylindrical_surface(function(t)c(cos(t),sin(t),0),c(0,pi),
c(-1,1),c(0,0,2),n_t=5,n_s=3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.