mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
Merge branch 'binary_brep' into 'master'
allow reading of binary brep files See merge request ngsolve/netgen!654
This commit is contained in:
commit
32f291c66e
@ -14,6 +14,7 @@
|
||||
#include "occgeom.hpp"
|
||||
#include "Partition_Spliter.hxx"
|
||||
|
||||
#include <BinTools.hxx>
|
||||
#include <BOPAlgo_Builder.hxx>
|
||||
#include <BRepBndLib.hxx>
|
||||
#include <BRepBuilderAPI_Copy.hxx>
|
||||
@ -1637,9 +1638,13 @@ namespace netgen
|
||||
Standard_Boolean result = BRepTools::Read(occgeo->shape, filename.string().c_str(), aBuilder);
|
||||
|
||||
if(!result)
|
||||
{
|
||||
result = BinTools::Read(occgeo->shape, filename.string().c_str());
|
||||
if (!result)
|
||||
{
|
||||
delete occgeo;
|
||||
return NULL;
|
||||
throw Exception("Could not read BREP file " + filename.string());
|
||||
}
|
||||
}
|
||||
|
||||
occgeo->changed = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user