Revision: 54480
http://brlcad.svn.sourceforge.net/brlcad/?rev=54480&view=rev
Author: indianlarry
Date: 2013-02-26 12:30:14 +0000 (Tue, 26 Feb 2013)
Log Message:
-----------
Fixed occurrences where face index was being checked to see if it were less
than the total number of surfaces, it should be checked to the total number of
faces instead. In openNURBS you can have more than one face per surface leading
to the number of faces greater than the number of surfaces.
Modified Paths:
--------------
brlcad/trunk/src/librt/primitives/brep/brep_debug.cpp
Modified: brlcad/trunk/src/librt/primitives/brep/brep_debug.cpp
===================================================================
--- brlcad/trunk/src/librt/primitives/brep/brep_debug.cpp 2013-02-25
23:08:14 UTC (rev 54479)
+++ brlcad/trunk/src/librt/primitives/brep/brep_debug.cpp 2013-02-26
12:30:14 UTC (rev 54480)
@@ -1249,7 +1249,7 @@
plotUVDomain2d(face, vbp);
plottrim(face, vbp, plotres, dim3d);
}
- } else if (index < brep->m_S.Count()) {
+ } else if (index < brep->m_F.Count()) {
ON_BrepFaceArray& faces = brep->m_F;
if (index < faces.Count()) {
ON_BrepFace& face = faces[index];
@@ -1284,7 +1284,7 @@
ON_BrepFace& face = brep->m_F[index];
plottrimdirection(face, vbp, plotres);
}
- } else if (index < brep->m_S.Count()) {
+ } else if (index < brep->m_F.Count()) {
ON_BrepFaceArray& faces = brep->m_F;
if (index < faces.Count()) {
ON_BrepFace& face = faces[index];
@@ -2071,7 +2071,7 @@
#endif
delete st;
}
- } else if (index < brep->m_S.Count()) {
+ } else if (index < brep->m_F.Count()) {
ON_BrepFaceArray& faces = brep->m_F;
if (index < faces.Count()) {
ON_BrepFace& face = faces[index];
@@ -2111,7 +2111,7 @@
SurfaceTree* st = new SurfaceTree(&face);
plotsurfaceleafs(st, vbp, dim3d);
}
- } else if (index < brep->m_S.Count()) {
+ } else if (index < brep->m_F.Count()) {
ON_BrepFaceArray& faces = brep->m_F;
if (index < faces.Count()) {
ON_BrepFace& face = faces[index];
@@ -2145,7 +2145,7 @@
SurfaceTree* st = new SurfaceTree(&face);
plottrimleafs(st, vbp, dim3d);
}
- } else if (index < brep->m_S.Count()) {
+ } else if (index < brep->m_F.Count()) {
ON_BrepFaceArray& faces = brep->m_F;
if (index < faces.Count()) {
ON_BrepFace& face = faces[index];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits