Revision: 73928
http://sourceforge.net/p/brlcad/code/73928
Author: starseeker
Date: 2019-09-14 16:04:27 +0000 (Sat, 14 Sep 2019)
Log Message:
-----------
Whoops - want min_edge, not max_edge, if we're looking at a high level spatch.
Considerably slows the face building stage, but output looks more like what is
expected.
Modified Paths:
--------------
brlcad/trunk/src/libbrep/cdt_surf.cpp
Modified: brlcad/trunk/src/libbrep/cdt_surf.cpp
===================================================================
--- brlcad/trunk/src/libbrep/cdt_surf.cpp 2019-09-14 14:42:28 UTC (rev
73927)
+++ brlcad/trunk/src/libbrep/cdt_surf.cpp 2019-09-14 16:04:27 UTC (rev
73928)
@@ -49,11 +49,6 @@
#include "bn/rand.h"
#include "./cdt.h"
-// TODO - investigate patch breakdown - getting a few cases where the surface
-// is sparse near a relatively finely broken down edge. Some decision criteria
-// are saying skip the breakdown when we should keep going - maybe need to be
-// more selective about which 3D bboxes we're checking?
-
struct cdt_surf_info {
std::set<ON_2dPoint *> on_surf_points;
std::set<ON_2dPoint *> on_trim_points;
@@ -308,8 +303,8 @@
}
if (nhits > 40) {
- // Lot of edges, probably a high level box - just return max_edge
- (*min_edge) = min_edge_dist;
+ // Lot of edges, probably a high level box we need to split - just
return the overall min_edge
+ (*min_edge) = sinfo->min_edge;
return true;
}
@@ -763,6 +758,8 @@
fastf_t udist = u2 - u1;
fastf_t vdist = v2 - v1;
+ //sp.plot("spatch.p3");
+
if ((udist < sinfo->min_dist + ON_ZERO_TOLERANCE)
|| (vdist < sinfo->min_dist + ON_ZERO_TOLERANCE)) {
return false;
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