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

LinkBack  Thread Tools  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: 3,997
Rep Power: 42 
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 
Super Moderator
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 18 
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 
Super Moderator
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 18 
Missing attachment.


August 12, 2009, 09:26 

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


August 12, 2009, 10:25 

#5 
Super Moderator
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 18 
I've pushed the fix to 1.6.x and 1.5.x.


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

#6  
New Member
X.G. Li
Join Date: Nov 2009
Location: Bremen, Germany
Posts: 19
Rep Power: 9 
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, 08:27 

#7  
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,997
Rep Power: 42 
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, 10: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: 9 
Thank you very much,,,I will have a try....
Quote:


Thread Tools  
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 