]> SALOME platform Git repositories - modules/geom.git/blob - src/BREPExport/BREPExport.cxx
Salome HOME
ENV: Windows porting.
[modules/geom.git] / src / BREPExport / BREPExport.cxx
1 // File:        BREPExport.cxx
2 // Created:     Wed May 19 13:10:05 2004
3 // Author:      Pavel TELKOV
4 //              <ptv@mutex.nnov.opencascade.com>
5
6 #include "utilities.h"
7
8 #include <BRepTools.hxx>
9
10 #include <TCollection_AsciiString.hxx>
11 #include <TopoDS_Shape.hxx>
12
13 #ifdef WNT
14 #include <SALOME_WNT.hxx>
15 #else
16 #define SALOME_WNT_EXPORT
17 #endif
18
19 //=============================================================================
20 /*!
21  *
22  */
23 //=============================================================================
24
25 extern "C"
26 {
27 SALOME_WNT_EXPORT
28   int Export(const TopoDS_Shape& theShape, const TCollection_AsciiString& theFileName)
29   {
30     MESSAGE("Export BREP into file " << theFileName.ToCString());
31
32     if ( !BRepTools::Write( theShape, theFileName.ToCString() ) )
33       return 0;
34
35     return 1;
36   }
37 }