vc_solid_cartesian: Sample the six faces of a nested Cartesian solid

View source: R/solid_cartesian.R

vc_solid_cartesianR Documentation

Sample the six faces of a nested Cartesian solid

Description

Sample the six faces of a nested Cartesian solid

Usage

vc_solid_cartesian(
  lower,
  upper,
  bottom,
  top,
  interval = NULL,
  n = 20L,
  n_u = 12L,
  n_v = 12L,
  partition = NULL
)

Arguments

lower, upper

Scalar y-boundary functions of x, ordered at sampled nodes.

bottom, top

Scalar z-boundary functions accepting one x,y vector.

interval

Finite increasing x bounds, or NULL with partition supplied.

n, n_u, n_v

Positive subdivisions in x, across y and across z.

partition

Optional vc_partition result for custom x strips.

Details

Reuses vc_region unchanged. Samples z bounds at every base grid node and retains exact shared endpoints on all face seams. Ordered bounds are checked at samples, not between nodes. Interpolated parametric faces may miss crossings or folds; this is not a certified watertight manifold. Degenerate sections/heights are allowed and can collapse face triangles. Disconnected sections need justified decomposition. No unused slice arguments are copied from the original API; it did not implement slices.

Value

Plain list with type solid_cartesian, base (full vc_region result), bottom/top matrices, v fractions and faces: x_min, x_max, y_lower, y_upper, z_lower, z_upper. Each face has finite x,y,z matrices with matching dimensions. No area, volume, normals or quadrature computed.

Examples

vc_solid_cartesian(function(x)0,function(x)1-x,function(v)0,
  function(v)1-sum(v),c(0,1),n=4,n_u=4,n_v=4)

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