Function locate

Source
pub fn locate(
    surface: &Surface,
    point: DVec3,
    tolerance: Tolerance,
) -> Result<(f64, f64), GeomError>
Expand description

Parameters of a point on a surface, iterating where no closed form exists: invert first, and for a B-spline the nearest point of a sample grid refined by Gauss-Newton. The answer must reproduce the point within tolerance, as invert’s must; where a surface overlaps itself one of the preimages is returned.

§Errors

The point is not on the surface, or the surface cannot be evaluated.