Fixes compilation issues due to private copy constructors using older versions of gcc

Added additional default library and include directories to cmake build file
Fixes a compilation error in the python wrapper
This commit is contained in:
Thomas Krijnen
2011-08-30 15:49:08 +00:00
parent ee9c00abcb
commit 44100ff0d4
5 changed files with 12 additions and 7 deletions
+2 -1
View File
@@ -104,7 +104,8 @@ bool IfcGeom::convert_wire_to_face(const TopoDS_Wire& wire, TopoDS_Face& face) {
if ( er == BRepBuilderAPI_NotPlanar ) {
ShapeFix_ShapeTolerance FTol;
FTol.SetTolerance(wire, 0.01, TopAbs_WIRE);
mf = BRepBuilderAPI_MakeFace(wire, false);
mf.~BRepBuilderAPI_MakeFace();
new (&mf) BRepBuilderAPI_MakeFace(wire);
er = mf.Error();
}
if ( er != BRepBuilderAPI_FaceDone ) return false;
+3
View File
@@ -257,6 +257,9 @@ extern bool IfcGeomObjects::Next() {
extern const IfcGeomObjects::IfcGeomObject* IfcGeomObjects::Get() {
return currentGeomObj;
}
extern bool IfcGeomObjects::Init(const char* fn, bool world_coords) {
return IfcGeomObjects::Init(fn, world_coords, 0, 0);
}
extern bool IfcGeomObjects::Init(const char* fn, bool world_coords, std::ostream* log1, std::ostream* log2) {
if ( log1 || log2 ) Ifc::SetOutput(log1,log2);
use_world_coords = world_coords;
+1
View File
@@ -97,6 +97,7 @@ namespace IfcGeomObjects {
IfcGeomObject( const std::string& n, const std::string& t, gp_Trsf trsf, IfcMesh* m );
};
extern bool Init(const char* fn, bool world_coords = false);
extern bool Init(const char* fn, bool world_coords = false, std::ostream* log1= 0, std::ostream* log2= 0);
extern bool Init(std::istream& f, int len, bool world_coords = false, std::ostream* log1= 0, std::ostream* log2= 0);
extern const IfcGeomObject* Get();
+1 -1
View File
@@ -36,6 +36,6 @@ namespace IfcGeomObjects {
extern bool Next();
extern const IfcGeomObject* Get();
extern bool Init(char* fn, bool world_coords = false);
extern bool Init(const char* fn, bool world_coords = false);
extern int Progress();
};