From: Thomas K. <t.k...@gm...> - 2012-04-26 09:18:17
|
Hi, In the intersection code for a Tri and a LineSeg I read the following in Intersection.h on line 905 | Ray<DATA_TYPE> temp( lineseg.getOrigin(), lineseg.getDir() ); I don't understand the reason for this temporary copy and to what extent 'temp' is different from 'lineseg'. If I wanted to have a double-sided Tri-LineSeg intersection would it be enough to change | bool result = intersect( tri, temp, u, v, t ); to | bool result = intersectDoubleSided( tri, temp, u, v, t ); on line 906? I hope some can shed some light onto my two questions. Thanks in advance. Kind regards, Thomas |