Revision: 56373
http://sourceforge.net/p/brlcad/code/56373
Author: phoenixyjll
Date: 2013-07-31 03:42:21 +0000 (Wed, 31 Jul 2013)
Log Message:
-----------
Take the tolerance into consideration when deciding whether a box is inside the
overlap region.
Modified Paths:
--------------
brlcad/trunk/src/libbrep/intersect.cpp
Modified: brlcad/trunk/src/libbrep/intersect.cpp
===================================================================
--- brlcad/trunk/src/libbrep/intersect.cpp 2013-07-31 03:40:52 UTC (rev
56372)
+++ brlcad/trunk/src/libbrep/intersect.cpp 2013-07-31 03:42:21 UTC (rev
56373)
@@ -2870,8 +2870,8 @@
for (NodePairs::iterator i = candidates.begin(); i != candidates.end();
i++) {
// If the box is considered already belonging to the overlap
// regions, we don't need to further sub-divide it.
- ON_2dPoint min2d(i->first->m_u.Min(), i->first->m_v.Min());
- ON_2dPoint max2d(i->first->m_u.Max(), i->first->m_v.Max());
+ ON_2dPoint min2d(i->first->m_u.Min() + intersection_tolerance_A,
i->first->m_v.Min() + intersection_tolerance_A);
+ ON_2dPoint max2d(i->first->m_u.Max() - intersection_tolerance_A,
i->first->m_v.Max() - intersection_tolerance_A);
// A box is inside the overlap region, if and only if it is
completely
// inside an outer loop, and outside all inner loops within the
outer
// loop.
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits