Change in triangle::intersection breaks stitchMesh in 1.5 and 1.6
2 Attachment(s)
This problem seems to have been introduced between 1.4.1 and 1.5: in earlier versions of OF even when the triangle was not hit the pointHit returned by triangle::intersection got some value. In 1.5 and 1.6 vector::zero is returned. Nevertheless this point value is then used in triangle::ray to calculate the distance to this point. I guess usually this distance is not used, but in slidingInterface::projectPoints() (approx line 303 of the source file) this distance is used to discard points. Consequently stitchMesh fails (Usually complaining about "Duplicate point found in cut face.") for some meshes
After applying the attached patches to 1.5.x and 1.6 and recompiling stitchMesh happily stitched meshes on which previously it failed. I don't know whether these patches affect other utilities as well If you want a mesh to verify the bug/fix, I can provide you with one Bernhard |
Thanks. I would like to leave the fast intersection() routine intact since it is used all over so want to recalculate the intersection with plane inside the ray() routine. Can you try attached triangleI.H and/or post the testcase?
|
1 Attachment(s)
Missing attachment.
|
Quote:
|
I've pushed the fix to 1.6.x and 1.5.x.
|
compiled stitchMesh.C
Quote:
Bernhard,,may you send me your recompiled stitchMesh.C,because i really donīt know where this patch should be put in the cold file.. Thank you very much! My e-mail is xgli@iwt.uni-bremen.de |
Quote:
The relevant patches should be in 1.5.x and 1.6.x so if you got one of those, everything's OK Bernhard |
Thank you very much,,,I will have a try....
:)Thank you very much,,,I will have a try....
Quote:
|
All times are GMT -4. The time now is 19:50. |