mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 00:07:53 +00:00
Address an incompatibility in IfcOpenHouse.cpp introduced within OCCT 6.5.2
This commit is contained in:
@@ -29,6 +29,8 @@
|
|||||||
#include <Geom_BSplineSurface.hxx>
|
#include <Geom_BSplineSurface.hxx>
|
||||||
#include <BRepBuilderAPI_MakeFace.hxx>
|
#include <BRepBuilderAPI_MakeFace.hxx>
|
||||||
|
|
||||||
|
#include <Standard_Version.hxx>
|
||||||
|
|
||||||
#include "../ifcparse/Ifc2x3.h"
|
#include "../ifcparse/Ifc2x3.h"
|
||||||
#include "../ifcparse/IfcUtil.h"
|
#include "../ifcparse/IfcUtil.h"
|
||||||
#include "../ifcparse/IfcHierarchyHelper.h"
|
#include "../ifcparse/IfcHierarchyHelper.h"
|
||||||
@@ -375,5 +377,9 @@ void createGroundShape(TopoDS_Shape& shape) {
|
|||||||
mult(0) = 5;
|
mult(0) = 5;
|
||||||
mult(1) = 5;
|
mult(1) = 5;
|
||||||
Handle(Geom_BSplineSurface) surf = new Geom_BSplineSurface(cv, knots, knots, mult, mult, 4, 4);
|
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);
|
shape = BRepBuilderAPI_MakeFace(surf, 1);
|
||||||
}
|
#endif
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user