Skip to content

estimate_normals throws when receiving point inputs belonging to the three origin planes #118

@cakarsubasi

Description

@cakarsubasi

I ran into this specific problem when trying to generate sampled mathematical surfaces for testing. Quite possibly the simplest mathematical surface that I can think of is the plane, so I tried generating points that satisfy the equation z = 0 (i.e. arbitrary points). This input crashes rotation system reconstruction during the normal generation step because the covariance matrix given to smallestEigenVector is singular. It also crashes for y = 0 and x = 0 but not for other planes as far as I can tell.

Although it seems extremely unlikely that this case is reached in any "real input", it is also the simplest input that came to my mind.

An example input triggering the crash is provided below:

math_points.obj

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions