[cgma-dev] r5411 - cgm/trunk/geom/OCC

jiangtao_ma at yahoo.com jiangtao_ma at yahoo.com
Tue Feb 28 10:27:09 CST 2012


Author: janehu
Date: 2012-02-28 10:27:09 -0600 (Tue, 28 Feb 2012)
New Revision: 5411

Modified:
   cgm/trunk/geom/OCC/OCCModifyEngine.cpp
Log:
Trying to fix the error found in Mac build for CGM on OCC.

Modified: cgm/trunk/geom/OCC/OCCModifyEngine.cpp
===================================================================
--- cgm/trunk/geom/OCC/OCCModifyEngine.cpp	2012-02-23 19:26:20 UTC (rev 5410)
+++ cgm/trunk/geom/OCC/OCCModifyEngine.cpp	2012-02-28 16:27:09 UTC (rev 5411)
@@ -933,10 +933,10 @@
 CubitStatus OCCModifyEngine::do_loft(BRepOffsetAPI_ThruSections& loft,
                                      DLIList<DLIList<TopoDS_Edge*>*> loops) const
 {
-   BRepBuilderAPI_MakeWire aWire;
    TopoDS_Edge  new_edge;
    for(int i = 0; i < loops.size(); i++)
    {
+     BRepBuilderAPI_MakeWire aWire;
      DLIList<TopoDS_Edge*> edges = *(loops.get_and_step());
 
      for(int j = 0; j <  edges.size(); j++)
@@ -949,7 +949,6 @@
        aWire.Add(new_edge);
      }
      loft.AddWire(aWire.Wire());
-     aWire = BRepBuilderAPI_MakeWire();
    }
    loft.Build();
    if(!loft.IsDone())





























More information about the cgma-dev mailing list