Hello,
I want to analyze the overlapping regions in a model. Ideally I want
to get "a_hit" for every region in a partition. To get this I've
adjusted the overlap functions in the application struct, i.e. the
a_multioverlap function ponter because using a_overlap is deprecated.
My multioverlap function now essentially looks like this:
for (size_t i = 0; i < BU_PTBL_LEN(regiontable); ++i) {
region* regp = reinterpret_cast<region*>(BU_PTBL_GET(regiontable, i));
if (regp == REGION_NULL)
continue;
RT_CHECK_REGION(regp);
MyHitFunction(ap, part, regp);
}
bu_ptbl_reset(regiontable);
And in a first test I was able to analyse my geometry this way.
However, setting a_no_booleans to 1 seems to have the same effect:
a_hit is called for every region of an overlap. Is this
intentionally? What's the purpose of a_no_booleans? How should a
simple a_multioverlap look like? rt_default_overlap() is rather
complex, starting with FASTGEN region checks.
Regards,
Daniel
------------------------------------------------------------------------------
_______________________________________________
BRL-CAD Developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-devel