NVIDIA-Omniverse / PhysX

NVIDIA PhysX SDK
BSD 3-Clause "New" or "Revised" License
2.61k stars 374 forks source link

In the PxCooking stage, are collinear triangles removed? #315

Closed szhang21 closed 2 months ago

szhang21 commented 2 months ago

In the PhysX 5.1.3 documentation, it is mentioned: "Mesh cleaning removes invalid triangles (containing out-of-range vertex references), duplicate triangles, and zero-area triangles." However, the baked triangle data still includes collinear triangles.

szhang21 commented 2 months ago

The version is 5.1.3 I am sure I did not set PxMeshPreprocessingFlag::eDISABLECLEANMESH.

vreutskyy commented 2 months ago

Hi @szhang21 Thanks for the report, we'll check this. It would help if you could provide some sample/data to reproduce the issue.

szhang21 commented 2 months ago

Hello, I have checked, and this issue has been resolved in the latest version of PhysX. In PhysX 5.1.3, the condition being checked is area2==0.0f. The value 0.0f is not sufficient to ensure that the area of the transformed triangle remains 0, leading to the assert false.Thank you for your reply