
[Sponsors] 
Change in triangle::intersection breaks stitchMesh in 1.5 and 1.6 

LinkBack  Thread Tools  Search this Thread  Display Modes 
August 11, 2009, 16:47 
Change in triangle::intersection breaks stitchMesh in 1.5 and 1.6

#1 
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,197
Rep Power: 47 
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:rojectPoints() (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 

August 12, 2009, 06:12 

#2 
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 23 
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?


August 12, 2009, 06:19 

#3 
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 23 
Missing attachment.


August 12, 2009, 09:26 

#4 
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,197
Rep Power: 47 
Yep. That fixes it. I'll mail you about the testcase


August 12, 2009, 10:25 

#5 
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 23 
I've pushed the fix to 1.6.x and 1.5.x.


February 11, 2010, 09:46 
compiled stitchMesh.C

#6  
New Member
X.G. Li
Join Date: Nov 2009
Location: Bremen, Germany
Posts: 19
Rep Power: 13 
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 email is xgli@iwt.unibremen.de 

February 12, 2010, 07:27 

#7  
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,197
Rep Power: 47 
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 

February 12, 2010, 09:21 
Thank you very much,,,I will have a try....

#8  
New Member
X.G. Li
Join Date: Nov 2009
Location: Bremen, Germany
Posts: 19
Rep Power: 13 
Thank you very much,,,I will have a try....
Quote:


Thread Tools  Search this Thread 
Display Modes  


Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
CFX4.3 build analysis form  Chie Min  CFX  5  July 12, 2001 23:19 