Address an incompatibility in IfcOpenHouse.cpp introduced within OCCT 6.5.2

This commit is contained in:
Thomas Krijnen
2012-12-18 12:17:35 +00:00
parent a33fc19ed6
commit 48e61cdcea
+7 -1
View File
@@ -29,6 +29,8 @@
#include <Geom_BSplineSurface.hxx>
#include <BRepBuilderAPI_MakeFace.hxx>
#include <Standard_Version.hxx>
#include "../ifcparse/Ifc2x3.h"
#include "../ifcparse/IfcUtil.h"
#include "../ifcparse/IfcHierarchyHelper.h"
@@ -375,5 +377,9 @@ void createGroundShape(TopoDS_Shape& shape) {
mult(0) = 5;
mult(1) = 5;
Handle(Geom_BSplineSurface) surf = new Geom_BSplineSurface(cv, knots, knots, mult, mult, 4, 4);
#if OCC_VERSION_HEX < 0x60502
shape = BRepBuilderAPI_MakeFace(surf);
#else
shape = BRepBuilderAPI_MakeFace(surf, 1);
}
#endif
}