Revision: 56847
          http://sourceforge.net/p/brlcad/code/56847
Author:   starseeker
Date:     2013-08-15 01:04:17 +0000 (Thu, 15 Aug 2013)
Log Message:
-----------
Get at the SdaiPath inside of the SdaiEdge_loop - adding the edges to THAT edge 
list appears to work.  Horribly unintuitive on the part of SdaiEdge_loop - 
what's the point of exposing _edge_list at all? - but at least it seems to 
function.

Modified Paths:
--------------
    brlcad/trunk/src/conv/step/ON_Brep.cpp

Modified: brlcad/trunk/src/conv/step/ON_Brep.cpp
===================================================================
--- brlcad/trunk/src/conv/step/ON_Brep.cpp      2013-08-14 21:46:47 UTC (rev 
56846)
+++ brlcad/trunk/src/conv/step/ON_Brep.cpp      2013-08-15 01:04:17 UTC (rev 
56847)
@@ -325,19 +325,17 @@
        // it's protected so I can't manually repair it afterward.  Looks like 
this is supposed to inherit the
        // initialization of _edge_list from SdaiPath, but is only inheriting 
from SdaiLoop.  May be related to
        // the recent proposed patch by Mark in stepcode to enable diamond 
inheritance - will have to experiment.
-       /*
        for (int i = 0; i < brep->m_L.Count(); ++i) {
                ON_BrepLoop *loop= &(brep->m_L[i]);
                edge_loops.at(i) = registry->ObjCreate("EDGE_LOOP");
                instance_list->Append(edge_loops.at(i), completeSE);
-               SdaiEdge_loop *e_loop = (SdaiEdge_loop *)edge_loops.at(i);
+               SdaiPath *e_loop = (SdaiPath 
*)edge_loops.at(i)->GetNextMiEntity();
                for (int l = 0; l < loop->TrimCount(); ++l) {
                        ON_BrepEdge *edge = loop->Trim(l)->Edge();
                        if (edge)
                                e_loop->edge_list_()->AddNode(new 
EntityNode((SDAI_Application_instance 
*)(oriented_edges.at(edge->m_edge_index))));
                }
        }
-        */
 
        // surfaces - TODO - need to handle cylindrical, conical, toroidal, 
etc. types that are enumerated
        std::cout << "Have " << brep->m_S.Count() << " surfaces\n";

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to