Skip to main content

deform_surface_where

Function deform_surface_where 

Source
pub fn deform_surface_where(
    surface: &NurbsSurface,
    spec: &DeformSpec,
    may_move: &dyn Fn(PoleSupport) -> bool,
) -> Result<DeformResult, DeformRefusal>
Expand description

deform_surface where, besides the held sides, a control point may move only when may_move accepts its support. A point of the surface depends only on the poles whose supports contain it (and on a support’s side only to the side’s vanishing order), so holding every pole whose support meets a region keeps the surface identical there to every order, and admitting one that only touches the region on a side of vanishing order 2 keeps the surface’s points and tangent planes there.