geom/src/BREPExport/BREPExport.cxx

38 lines
782 B
C++
Raw Normal View History

2004-12-01 15:39:14 +05:00
// File: BREPExport.cxx
// Created: Wed May 19 13:10:05 2004
// Author: Pavel TELKOV
// <ptv@mutex.nnov.opencascade.com>
#include "utilities.h"
#include <BRepTools.hxx>
#include <TCollection_AsciiString.hxx>
#include <TopoDS_Shape.hxx>
2005-08-11 10:04:55 +06:00
#ifdef WNT
#include <SALOME_WNT.hxx>
#else
#define SALOME_WNT_EXPORT
#endif
2004-12-01 15:39:14 +05:00
//=============================================================================
/*!
*
*/
//=============================================================================
extern "C"
{
2005-08-11 10:04:55 +06:00
SALOME_WNT_EXPORT
2004-12-01 15:39:14 +05:00
int Export(const TopoDS_Shape& theShape, const TCollection_AsciiString& theFileName)
{
MESSAGE("Export BREP into file " << theFileName.ToCString());
if ( !BRepTools::Write( theShape, theFileName.ToCString() ) )
return 0;
return 1;
}
}