Version: 9.12.0
SMESH_DriverShape.cxx File Reference
#include <utilities.h>
#include <Utils_SALOME_Exception.hxx>
#include "SMESH_DriverShape.hxx"
#include <STEPControl_Reader.hxx>
#include <STEPControl_Writer.hxx>
#include <Interface_Static.hxx>
#include <BRepTools.hxx>
#include <BRep_Builder.hxx>
#include <TopoDS.hxx>
#include <boost/filesystem.hpp>
#include <boost/algorithm/string.hpp>
Include dependency graph for SMESH_DriverShape.cxx:

Functions

int importSTEPShape (const std::string shape_file, TopoDS_Shape &aShape)
 Import the content of a shape file (STEP) into a TopDS_Shape object. More...
 
int exportSTEPShape (const std::string shape_file, const TopoDS_Shape &aShape)
 Export the content of a TopoDS_Shape into a shape file (STEP) More...
 
int importBREPShape (const std::string shape_file, TopoDS_Shape &aShape)
 Import the content of a shape file (BREP) into a TopDS_Shape object. More...
 
int exportBREPShape (const std::string shape_file, const TopoDS_Shape &aShape)
 Export the content of a TopoDS_Shape into a shape file (BREP) More...
 

Function Documentation

◆ exportBREPShape()

int exportBREPShape ( const std::string  shape_file,
const TopoDS_Shape &  aShape 
)

Export the content of a TopoDS_Shape into a shape file (BREP)

Parameters
shape_filethe shape file
aShapethe object
Returns
error code

References MESSAGE, and UNV164::Write().

Referenced by SMESH_DriverShape::exportShape().

◆ exportSTEPShape()

int exportSTEPShape ( const std::string  shape_file,
const TopoDS_Shape &  aShape 
)

Export the content of a TopoDS_Shape into a shape file (STEP)

Parameters
shape_filethe shape file
aShapethe object
Returns
error code

References MESSAGE.

Referenced by SMESH_DriverShape::exportShape().

◆ importBREPShape()

int importBREPShape ( const std::string  shape_file,
TopoDS_Shape &  aShape 
)

Import the content of a shape file (BREP) into a TopDS_Shape object.

Parameters
shape_filethe shape file
aShapethe object
Returns
error code

References MESSAGE, and UNV164::Read().

Referenced by SMESH_DriverShape::importShape().

◆ importSTEPShape()

int importSTEPShape ( const std::string  shape_file,
TopoDS_Shape &  aShape 
)

Import the content of a shape file (STEP) into a TopDS_Shape object.

Parameters
shape_filethe shape file
aShapethe object
Returns
error code

References MESSAGE.

Referenced by SMESH_DriverShape::importShape().