Re: [brlcad-devel] Rendering bug with CSG in OpenCL librt with ARS primitive.

2017-10-23 Thread Vasco Alexandre da Silva Costa
Just a note. There are more lines of code in the hit sanitizer for BOT than in the rest of the code proper. Don't believe me? Look at this: https://svn.code.sf.net/p/brlcad/code/brlcad/trunk/src/librt/primitives/bot/g_bot_include.c rt_bot_makesegs_ is one of these sanitizers. On Tue, Oct 24, 2017

Re: [brlcad-devel] Rendering bug with CSG in OpenCL librt with ARS primitive.

2017-10-23 Thread Vasco Alexandre da Silva Costa
Ah nevermind. This is probably an issue with the BOT implementation we currently have in OpenCL librt. It is not generating the segments properly to ensure there's a reasonably formed solid. Also the algorithm for computing triangle intersections is not the same. IIRC we use Moller-Trumbore's algor