Revision: 73219
http://sourceforge.net/p/brlcad/code/73219
Author: starseeker
Date: 2019-05-31 21:26:17 +0000 (Fri, 31 May 2019)
Log Message:
-----------
Want the value in faces, not i
Modified Paths:
--------------
brlcad/trunk/src/libbrep/cdt.cpp
Modified: brlcad/trunk/src/libbrep/cdt.cpp
===================================================================
--- brlcad/trunk/src/libbrep/cdt.cpp 2019-05-31 19:09:32 UTC (rev 73218)
+++ brlcad/trunk/src/libbrep/cdt.cpp 2019-05-31 21:26:17 UTC (rev 73219)
@@ -1075,11 +1075,11 @@
} else {
for (int i = 0; i < face_cnt; i++) {
if (faces[i] < s_cdt->brep->m_F.Count()) {
- if (s_cdt->faces->find(i) == s_cdt->faces->end()) {
- struct ON_Brep_CDT_Face_State *f =
ON_Brep_CDT_Face_Create(s_cdt, i);
- (*s_cdt->faces)[i] = f;
+ if (s_cdt->faces->find(faces[i]) == s_cdt->faces->end()) {
+ struct ON_Brep_CDT_Face_State *f =
ON_Brep_CDT_Face_Create(s_cdt, faces[i]);
+ (*s_cdt->faces)[faces[i]] = f;
}
- if (ON_Brep_CDT_Face((*s_cdt->faces)[i], &s_to_maxdist)) {
+ if (ON_Brep_CDT_Face((*s_cdt->faces)[faces[i]], &s_to_maxdist))
{
face_failures++;
} else {
face_successes++;
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