mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 22:00:33 +05:00
allow reading of binary brep files
This commit is contained in:
parent
af5e003790
commit
3709ea8f94
@ -14,6 +14,7 @@
|
|||||||
#include "occgeom.hpp"
|
#include "occgeom.hpp"
|
||||||
#include "Partition_Spliter.hxx"
|
#include "Partition_Spliter.hxx"
|
||||||
|
|
||||||
|
#include <BinTools.hxx>
|
||||||
#include <BOPAlgo_Builder.hxx>
|
#include <BOPAlgo_Builder.hxx>
|
||||||
#include <BRepBndLib.hxx>
|
#include <BRepBndLib.hxx>
|
||||||
#include <BRepBuilderAPI_Copy.hxx>
|
#include <BRepBuilderAPI_Copy.hxx>
|
||||||
@ -1638,8 +1639,12 @@ namespace netgen
|
|||||||
|
|
||||||
if(!result)
|
if(!result)
|
||||||
{
|
{
|
||||||
delete occgeo;
|
result = BinTools::Read(occgeo->shape, filename.string().c_str());
|
||||||
return NULL;
|
if (!result)
|
||||||
|
{
|
||||||
|
delete occgeo;
|
||||||
|
throw Exception("Could not read BREP file " + filename.string());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
occgeo->changed = 1;
|
occgeo->changed = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user