Back to index

salome-geom  6.5.0
Defines | Functions
BREPImport.cxx File Reference
#include "utilities.h"
#include <BRepTools.hxx>
#include <BRep_Builder.hxx>
#include <TCollection_AsciiString.hxx>
#include <TopoDS_Shape.hxx>
#include <TDF_Label.hxx>

Go to the source code of this file.




BREPIMPORT_EXPORT TopoDS_Shape Import (const TCollection_AsciiString &theFileName, const TCollection_AsciiString &, TCollection_AsciiString &theError, const TDF_Label &)

Define Documentation

Definition at line 52 of file BREPImport.cxx.

Function Documentation

BREPIMPORT_EXPORT TopoDS_Shape Import ( const TCollection_AsciiString &  theFileName,
const TCollection_AsciiString &  ,
TCollection_AsciiString &  theError,
const TDF_Label &   

Definition at line 64 of file BREPImport.cxx.

    MESSAGE("Import BREP from file " << theFileName);
    TopoDS_Shape aShape;
    BRep_Builder B;
    BRepTools::Read(aShape, theFileName.ToCString(), B);
    if (aShape.IsNull()) {
      theError = "BREP Import failed";
    return aShape;