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

janehu at mcs.anl.gov janehu at mcs.anl.gov
Thu Feb 21 15:56:51 CST 2008


Author: janehu
Date: 2008-02-21 15:56:50 -0600 (Thu, 21 Feb 2008)
New Revision: 1614

Modified:
   cgm/trunk/geom/OCC/OCCModifyEngine.cpp
   cgm/trunk/geom/OCC/OCCModifyEngine.hpp
Log:
changed for a correct calling prototype, needs implementation for sort/make connected curves and make multi-loop surface. This sorting efford is provide in ACIS, and OCC reqires for orderd TopoDS_Edge to build surface.

Modified: cgm/trunk/geom/OCC/OCCModifyEngine.cpp
===================================================================
--- cgm/trunk/geom/OCC/OCCModifyEngine.cpp	2008-02-21 19:51:25 UTC (rev 1613)
+++ cgm/trunk/geom/OCC/OCCModifyEngine.cpp	2008-02-21 21:56:50 UTC (rev 1614)
@@ -645,6 +645,7 @@
 {
   //Create TopoDS_Edge list to make a surface.
   DLIList<TopoDS_Edge*> topo_edges;
+  DLIList<DLIList<TopoDS_Edge*>*> topo_edges_loops;
   curve_list.reset() ;
   Curve const* curve_ptr = NULL ;
   OCCCurve* occ_curve = NULL;
@@ -687,9 +688,11 @@
      topo_edges.append(topo_edge);
   }
   
+  topo_edges_loops.append(&topo_edges);
+
   // Use the topo_edges to make a topo_face
   TopoDS_Face* topo_face = make_TopoDS_Face(surface_type,
-					topo_edges, old_surface_ptr) ;
+					topo_edges_loops, old_surface_ptr) ;
  
   if(topo_face == NULL)
   {
@@ -747,6 +750,7 @@
   for(int i = 1; i < topo_edges->size(); i++)
     aWire.Add(*(topo_edges->step_and_get()));
      
+  return (TopoDS_Face*) NULL;
 }
 //===============================================================================
 // Function   : make_Lump

Modified: cgm/trunk/geom/OCC/OCCModifyEngine.hpp
===================================================================
--- cgm/trunk/geom/OCC/OCCModifyEngine.hpp	2008-02-21 19:51:25 UTC (rev 1613)
+++ cgm/trunk/geom/OCC/OCCModifyEngine.hpp	2008-02-21 21:56:50 UTC (rev 1614)
@@ -652,13 +652,10 @@
                                   DLIList<BodySM*> &new_bodies,
                                   DLIList<TopologyBridge*>*,
                                   DLIList<TopologyBridge*>* ) const; 
-  TopoDS_Face* make_TopoDS_Face(GeometryType surface_type,
-                                DLIList<DLIList<TopoDS_Edge*>*> topo_edges_list, 
-                                Surface * old_surface_ptr)const; 
 protected:
 
  TopoDS_Face* make_TopoDS_Face( GeometryType surface_type,
-					                      const DLIList<TopoDS_Edge*>& topo_edges, 
+  	                        DLIList<DLIList<TopoDS_Edge*>*> topo_edges, 
                                 Surface* old_surface_ptr) const;     
 private:
   




More information about the cgma-dev mailing list