vc_solid_spherical: Sample spherical solids as stored parameter patches

View source: R/solid_spherical.R

vc_solid_sphericalR Documentation

Sample spherical solids as stored parameter patches

Description

Sample spherical solids as stored parameter patches

Usage

vc_solid_spherical(
  polar_lower,
  polar_upper,
  radial_lower,
  radial_upper,
  interval = NULL,
  n = 24L,
  n_u = 16L,
  n_v = 8L,
  partition = NULL
)

Arguments

polar_lower, polar_upper

Ordered polar-angle functions of theta; sampled phi must lie in ⁠[0,pi]⁠, measured from positive z.

radial_lower, radial_upper

Ordered nonnegative radius functions of one theta,phi vector.

interval

Increasing azimuth theta bounds in radians; span at most 2*pi. NULL with partition supplied.

n, n_u, n_v

Positive subdivisions in theta, polar blend and radius blend.

partition

Optional vc_partition result for custom theta strips.

Details

Reuses the Cartesian parameter sampler and accepted spherical coordinate map unchanged. No volume, area, normals or quadrature computed. Exact pole sines are zero. Angular cuts and pole/origin degeneracies remain stored; cuts are not necessarily exterior boundary patches. Endpoint periodicity and pole consistency are not inferred from the angular ranges. Sampled ordering/shared endpoints cannot certify between-node behavior, exact closure, outward orientation or a watertight manifold. Curved patches are interpolated approximations. Original radial surface examples use constant polar bounds; theta-dependent polar bounds are also supported.

Value

Plain list of type solid_spherical with parameter (unchanged vc_solid_cartesian result in theta,phi,rho coordinates), Cartesian faces theta_min,theta_max,polar_lower,polar_upper,radial_inner,radial_outer, full_turn metadata (exact numeric span equals 2*pi) and note.

Examples

vc_solid_spherical(function(t)0,function(t)pi,function(v)1,function(v)2,
  c(0,2*pi),n=12,n_u=8,n_v=3)

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