vc_solid_cylindrical: Sample a cylindrical solid using stored parameter-box faces

View source: R/solid_cylindrical.R

vc_solid_cylindricalR Documentation

Sample a cylindrical solid using stored parameter-box faces

Description

Sample a cylindrical solid using stored parameter-box faces

Usage

vc_solid_cylindrical(
  radial_lower,
  radial_upper,
  bottom,
  top,
  interval = NULL,
  n = 24L,
  n_u = 12L,
  n_v = 12L,
  partition = NULL
)

Arguments

radial_lower, radial_upper

Nonnegative ordered radius functions of theta.

bottom, top

Height functions of one theta,r vector, ordered at nodes.

interval

Increasing azimuth bounds in radians, span at most 2*pi; NULL with partition supplied. Geometry does not use reversed orientation.

n, n_u, n_v

Positive subdivisions in theta, radial blend and height blend.

partition

Optional vc_partition result for custom theta strips.

Details

Reuses vc_solid_cartesian unchanged, then maps stored theta,r,z to x=r*cos(theta), y=r*sin(theta), z=z. No boundary reevaluation is needed for this mapping; no area, normals, volume or quadrature are computed. Sampled boundary order does not certify between-node order or topology. At the axis patches can collapse. At a full turn angular cut patches can overlap and are not necessarily exterior boundary: all parameter patches remain stored and caller selects which to draw. Periodic boundary agreement is not inferred; nonperiodic endpoints can describe different seam sections. Coincident coordinates can differ by trigonometric roundoff. No exact closure, outward orientation or watertight manifold is certified.

Value

Plain list of type solid_cylindrical with parameter (full unchanged vc_solid_cartesian result in theta,r,z coordinates), physical Cartesian faces named theta_min, theta_max, radial_inner, radial_outer, z_lower, z_upper, full_turn flag (exact numeric span equals 2*pi), and note.

Examples

vc_solid_cylindrical(function(t)0,function(t)1,function(v)0,function(v)2,
  c(0,pi/2),n=4,n_u=3,n_v=3)

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