Revision: 73836
          http://sourceforge.net/p/brlcad/code/73836
Author:   starseeker
Date:     2019-09-05 16:11:52 +0000 (Thu, 05 Sep 2019)
Log Message:
-----------
Match trim1 and trim2 with the corresponding bseg->tseg trim index, not the 
edge's 0/1 listings.

Modified Paths:
--------------
    brlcad/trunk/src/libbrep/cdt.cpp

Modified: brlcad/trunk/src/libbrep/cdt.cpp
===================================================================
--- brlcad/trunk/src/libbrep/cdt.cpp    2019-09-05 15:32:58 UTC (rev 73835)
+++ brlcad/trunk/src/libbrep/cdt.cpp    2019-09-05 16:11:52 UTC (rev 73836)
@@ -553,8 +553,8 @@
     if (!bseg->tseg1 || !bseg->tseg2 || !bseg->nc) return nedges;
 
     ON_BrepEdge& edge = s_cdt->brep->m_E[bseg->edge_ind];
-    ON_BrepTrim *trim1 = edge.Trim(0);
-    ON_BrepTrim *trim2 = edge.Trim(1);
+    ON_BrepTrim *trim1 = &s_cdt->brep->m_T[bseg->tseg1->trim_ind];
+    ON_BrepTrim *trim2 = &s_cdt->brep->m_T[bseg->tseg2->trim_ind];
 
     // If we don't have associated trims, we can't do anything
     if (!trim1 || !trim2) return nedges;
@@ -565,7 +565,6 @@
     cdt_mesh::cdt_mesh_t *fmesh2 = &s_cdt->fmeshes[face2->m_face_index];
 
 
-
     // Get the 3D midpoint (and tangent, if we can) from the edge curve
     ON_3dPoint edge_mid_3d = ON_3dPoint::UnsetPoint;
     ON_3dVector edge_mid_tan = ON_3dVector::UnsetVector;

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

Reply via email to