Skip to main content

icp

Function icp 

Source
pub fn icp(
    source: &[Point],
    source_normals: Option<&[Vector]>,
    target: &Bvh,
    opts: &Icp,
) -> OgeomResult<Registration>
Expand description

Register source onto the mesh target was built over: the rigid transform carrying the points onto it, from each of Icp::starts, the best scored. See the module for the rounds, the score and the free motions.

source_normals, one per point, are needed with a facing limit and used for nothing else.

ยงErrors

As Icp::check; OgeomError::Domain for no points, a point not finite, an empty mesh, or a facing limit without normals; OgeomError::Dimension for normals not one per point; and as principal_frame for the principal axes of a mesh with no area.