Skip to main content

pcurve_gap

Function pcurve_gap 

Source
pub fn pcurve_gap(
    curve: (&Curve, (f64, f64)),
    pcurve: (&PlanarCurve, (f64, f64)),
    surface: &SurfaceGeometry,
    stated: f64,
    tol: Tolerances,
) -> OgeomResult<f64>
Expand description

How far a pcurve, lifted through its surface, stands off an edge’s curve: at each of many samples along both ranges alike, the distance between the two points, or where that exceeds stated, the distance from the lifted point to the nearest point of the curve’s stretch, and the widest peaks between samples searched for their tops, so a stretch of the edge sampled anywhere stays within the answer. Within stated, the answer is only known to be within it.

Unlike lifted_gap, which charges a pcurve for a pace differing from the curve’s by more than a sample’s step, this measures where the pcurve lies, as check does: an iso line run the other way round a closed rim stands on the rim.

A line, a circle or an ellipse against a line, a circle or an ellipse on a plane, or an iso line of a cylinder, a cone, a sphere or a torus, is answered in closed form where that stands within stated: within rounding of what the sampling measures.

§Errors

If the curve or the pcurve cannot be evaluated over its range.