obj2pcd icon indicating copy to clipboard operation
obj2pcd copied to clipboard

getTriArea may return -nan

Open Raven1996 opened this issue 7 years ago • 3 comments

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.

Raven1996 avatar Nov 07 '18 10:11 Raven1996

Hi, Thank you for using the software, and the feedback! I just downloaded the models-OBJ.zip from ShapeNetSem website. But I cannot locate the obj file. Could you provide the file name of that obj file?

jiangwei221 avatar Dec 09 '18 21:12 jiangwei221

I see, it happened when 3 points of a triangle lies on the same line, which caused the area of the triangle become 0.

jiangwei221 avatar Dec 10 '18 21:12 jiangwei221

I see, it happened when 3 points of a triangle lies on the same line, which caused the area of the triangle become 0.

Sorry for the late reply. That's what I mean. The area is too tiny so that float number may be negative.

Raven1996 avatar Dec 11 '18 08:12 Raven1996