Skip to content

getTriArea may return -nan #1

@Raven1996

Description

@Raven1996

Hello, I‘ve tried obj2pcd on ShapeNetSem and found a problem.
The "getTriArea" function returned -nan only on one face among the 12k models.
The model ID is wss.dba37de1080c048f4f32009f59473bea.
I think this problem is due to the double precision.
In sampler.h line 58, it is necessary to check the sign before applying sqrt.

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