vc_cylindrical_surface: Sample a cylindrical surface generated by parallel straight...

View source: R/surface_geometry.R

vc_cylindrical_surfaceR Documentation

Sample a cylindrical surface generated by parallel straight rulings

Description

Sample a cylindrical surface generated by parallel straight rulings

Usage

vc_cylindrical_surface(
  curve,
  interval,
  s_range,
  direction,
  n_t = 31L,
  n_s = 11L
)

Arguments

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.

Details

The surface is curve(t) + s times the unit direction. The generating curve may be noncircular. Negative s is allowed.

Value

Surface sample with u as curve parameter and v as ruling distance, plus the stored generating curve and unit ruling direction.

Examples

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)

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