Revision: 73926
http://sourceforge.net/p/brlcad/code/73926
Author: starseeker
Date: 2019-09-14 14:35:14 +0000 (Sat, 14 Sep 2019)
Log Message:
-----------
Add point bboxes in 3D as well.
Modified Paths:
--------------
brlcad/trunk/src/libbrep/cdt_edge.cpp
Modified: brlcad/trunk/src/libbrep/cdt_edge.cpp
===================================================================
--- brlcad/trunk/src/libbrep/cdt_edge.cpp 2019-09-14 14:02:47 UTC (rev
73925)
+++ brlcad/trunk/src/libbrep/cdt_edge.cpp 2019-09-14 14:35:14 UTC (rev
73926)
@@ -292,6 +292,17 @@
p2[1] = bb.Max().y;
p2[2] = bb.Max().z;
s_cdt->face_rtrees_3d[trim.Face()->m_face_index].Insert(p1, p2, (void
*)pe);
+
+ // Also put a box around the start point - otherwise there are occasionally
+ // 'holes' in a curved loop's bbox coverage where sampling can get very
+ // close to the loop right near the edge points without getting rejected.
+ p1[0] = p3d1->x - 0.5*bdist;
+ p1[1] = p3d1->y - 0.5*bdist;
+ p1[2] = p3d1->z - 0.5*bdist;
+ p2[0] = p3d1->x + 0.5*bdist;
+ p2[1] = p3d1->y + 0.5*bdist;
+ p2[2] = p3d1->z + 0.5*bdist;
+ s_cdt->face_rtrees_3d[trim.Face()->m_face_index].Insert(p1, p2, (void
*)pe);
}
struct rtree_minsplit_context {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits