[cgma-dev] r4225 - cgm/trunk/geom/OCC
jiangtao_ma at yahoo.com
jiangtao_ma at yahoo.com
Tue Oct 19 12:20:14 CDT 2010
Author: janehu
Date: 2010-10-19 12:20:14 -0500 (Tue, 19 Oct 2010)
New Revision: 4225
Modified:
cgm/trunk/geom/OCC/OCCQueryEngine.cpp
cgm/trunk/geom/OCC/OCCQueryEngine.hpp
Log:
Add for buffer read in or wirte out for occ shapes.
Modified: cgm/trunk/geom/OCC/OCCQueryEngine.cpp
===================================================================
--- cgm/trunk/geom/OCC/OCCQueryEngine.cpp 2010-10-18 22:10:22 UTC (rev 4224)
+++ cgm/trunk/geom/OCC/OCCQueryEngine.cpp 2010-10-19 17:20:14 UTC (rev 4225)
@@ -1203,189 +1203,8 @@
return CUBIT_SUCCESS;
}
-/*
-CubitStatus
-OCCQueryEngine::write_topology( //const unsigned char* p_buffer,
- //char* p_buffer,
- ofstream& os,
- DLIList<OCCBody*> &OCC_bodies,
- DLIList<OCCSurface*> &OCC_surfaces,
- DLIList<OCCCurve*> &OCC_curves,
- DLIList<OCCPoint*> &OCC_points)
-{
- int i;
- //Create a compound shape to export
- BRep_Builder B;
- TopoDS_Compound Co;
- B.MakeCompound(Co);
-
- //Add every shape to the compound
- for (i = 0; i < OCC_bodies.size(); i++)
- {
- OCCBody* body = OCC_bodies.get_and_step();
- TopoDS_CompSolid *shape = body->get_TopoDS_Shape();
-
- if (shape == NULL || shape->IsNull()) //singel lump or sheet or shell body
- {
- OCCSurface* surface = body->my_sheet_surface();
- OCCShell* shell = body->shell();
- DLIList<Lump*> lumps = occ_body->lumps();
- if(surface)
- B.Add(Co,*(surface->get_TopoDS_Face()));
- else if (shell)
- B.Add(Co,*(shell->get_TopoDS_Shell()));
- else
- B.Add(Co,*(CAST_TO(lumps.get(),OCCLump)->get_TopoDS_Solid()));
- continue;
- }
-
- //check if this body is build backwards from lump. if so,
- //the body and its CompSolid doesn't have bounded relationship
- //established. In this case, each individual lump of the body
- // will be exported as TopoDS_Solid without a CompSolid
- if(OCCMap->IsBound(*shape))
- B.Add(Co, *shape);
More information about the cgma-dev
mailing list