Revision: 70017 http://sourceforge.net/p/brlcad/code/70017 Author: vasco_costa Date: 2017-07-28 22:38:43 +0000 (Fri, 28 Jul 2017) Log Message: ----------- Add note to code to split 'struct hit' to conserve memory.
Modified Paths: -------------- brlcad/branches/opencl/src/librt/primitives/common.cl Modified: brlcad/branches/opencl/src/librt/primitives/common.cl =================================================================== --- brlcad/branches/opencl/src/librt/primitives/common.cl 2017-07-28 22:31:33 UTC (rev 70016) +++ brlcad/branches/opencl/src/librt/primitives/common.cl 2017-07-28 22:38:43 UTC (rev 70017) @@ -42,7 +42,7 @@ struct { double re, im; }; } bn_complex_t; - +/*TODO: remove hit_point and hit_normal from here and switch users of it into struct surf below. */ struct hit { double3 hit_point; double3 hit_normal; @@ -51,6 +51,11 @@ int hit_surfno; }; +struct surf { + double3 srf_point; + double3 srf_normal; +}; + struct seg { struct hit seg_in; struct hit seg_out; @@ -65,9 +70,9 @@ uint forw_pp; /* index to the next partition */ uint back_pp; /* index to the previous partition */ uint region_id; /* id of the "owning" region */ - short evaluated; /* holds the result of boolean evaluation */ - char inflip; /* flip inhit->hit_normal */ - char outflip; /* flip outhit->hit_normal */ + short evaluated; /* holds the result of boolean evaluation */ + char inflip; /* flip inhit->hit_normal */ + char outflip; /* flip outhit->hit_normal */ }; union tree_rpn { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits