tag:blogger.com,1999:blog-1191561667656967116.post7717995868353673384..comments2023-08-03T14:52:07.554+01:00Comments on Tom Hammersley's Graphics and Games Development Blog: Ray-Triangle Intersection in HaskellUnknownnoreply@blogger.comBlogger4125tag:blogger.com,1999:blog-1191561667656967116.post-48746371630825976322011-04-08T15:26:53.454+01:002011-04-08T15:26:53.454+01:00Yep, it's me alright.. the very same.
Barycen...Yep, it's me alright.. the very same.<br /><br />Barycentric is good and all, but the half-planes were a nicer (more natural) match to FP programming.<br /><br />FWIW I use barycentric for the interpolation of normals etc :-)Anonymoushttps://www.blogger.com/profile/17973597553243574836noreply@blogger.comtag:blogger.com,1999:blog-1191561667656967116.post-74077330947793568412011-04-08T13:32:26.778+01:002011-04-08T13:32:26.778+01:00Could this be the same Tom Hammersley from wolvo? ...Could this be the same Tom Hammersley from wolvo? Haskell... Surely not.. ;-)<br /><br />I guess I'm a little out-of-date with this stuff but why not barrycentric coords?frenzynoreply@blogger.comtag:blogger.com,1999:blog-1191561667656967116.post-82905221100634576492011-04-07T11:47:36.342+01:002011-04-07T11:47:36.342+01:00Using 'all' saved 4 seconds :-)
Thanks fo...Using 'all' saved 4 seconds :-)<br /><br />Thanks for the pointer, I guess I should get to know some of these standard functions a little better!Anonymoushttps://www.blogger.com/profile/17973597553243574836noreply@blogger.comtag:blogger.com,1999:blog-1191561667656967116.post-53880716560121830722011-04-07T11:30:40.142+01:002011-04-07T11:30:40.142+01:00Half-planes are interesting!
I think you should i...Half-planes are interesting!<br /><br />I think you should implement pointInsideTriangle with "all". And I'd probably do intersectRayTriangle with the Maybe monad, using "guard".<br /><br />One more thing... doubleSided == False? Dude!Sjoerd Visscherhttps://www.blogger.com/profile/10698430967044536619noreply@blogger.com