View source: R/solid_spherical.R
| vc_solid_spherical | R Documentation |
Sample spherical solids as stored parameter patches
vc_solid_spherical(
polar_lower,
polar_upper,
radial_lower,
radial_upper,
interval = NULL,
n = 24L,
n_u = 16L,
n_v = 8L,
partition = NULL
)
polar_lower, polar_upper |
Ordered polar-angle functions of theta;
sampled phi must lie in |
radial_lower, radial_upper |
Ordered nonnegative radius functions of one theta,phi vector. |
interval |
Increasing azimuth theta bounds in radians; span at most
|
n, n_u, n_v |
Positive subdivisions in theta, polar blend and radius blend. |
partition |
Optional vc_partition result for custom theta strips. |
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.
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.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.