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 at 1:32 AM, Vasco Alexandre da Silva Costa <vasco.co...@gmail.com> wrote: > 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 algorithm in OpenCL librt and ANSI C librt > uses Badouel's. > > On Tue, Oct 24, 2017 at 1:21 AM, Vasco Alexandre da Silva Costa > <vasco.co...@gmail.com> wrote: >> Hey, >> Try using the default OpenCL librt with this primitive: >> mged> in x.1 ars 4 6 0 0 3 1 1 3 1 -1 3 -1 -1 3 -1 1 3 1 1 1 1 -1 1 -1 >> -1 1 -1 1 1 1 0 -1 0 -1 -1 -1 0 -1 0 1 -1 1 0 -3 0 -1 -3 -1 0 -3 0 1 >> -3 0 0 -3 >> mged> e x.1 >> >> It should look different from the ANSI C librt. >> Yet if I disable the boolean processing in the OpenCL librt it looks fine: >> -c "set a_no_booleans=1" >> >> It's easier to tell that there's a problem with the lighting mode >> changed to surface normals: >> -l 2 >> >> These options can be set in the "Other Options" text box in the >> Raytrace->Advanced Settings window. >> >> -- >> Vasco Alexandre da Silva Costa >> PhD in Computer Engineering (Computer Graphics) >> Instituto Superior Técnico/University of Lisbon, Portugal > > > > -- > Vasco Alexandre da Silva Costa > PhD in Computer Engineering (Computer Graphics) > Instituto Superior Técnico/University of Lisbon, Portugal -- Vasco Alexandre da Silva Costa PhD in Computer Engineering (Computer Graphics) Instituto Superior Técnico/University of Lisbon, Portugal ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ BRL-CAD Developer mailing list brlcad-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-devel