Skip to main content

fit_pcurve_on_surface

Function fit_pcurve_on_surface 

Source
pub fn fit_pcurve_on_surface(
    surface: &NurbsSurface,
    curve: &NurbsCurve,
) -> Result<PcurveFit, String>
Expand description

Build a parameter-space curve for a 3D curve lying on a surface, and say what the fit achieved.

This mirrors the reference imprint implementation: affine patches map homogeneous control points exactly; general patches use sampled inversion, periodic seam unwrapping, and adaptive 3D residual refinement. The report beside the curve carries the residual the RETURNED curve reaches and why refinement stopped (PcurveFitReport); the curve itself is what build_pcurve_on_surface has always returned.