examples: fix missing includes

This commit is contained in:
Dirk Olbrich
2024-02-22 20:51:45 +01:00
committed by Thomas Krijnen
parent eb50be5c52
commit 28c7da2336
2 changed files with 48 additions and 48 deletions
+2 -1
View File
@@ -27,10 +27,11 @@
// Disable warnings coming from IfcOpenShell // Disable warnings coming from IfcOpenShell
#pragma warning(disable : 4018 4267 4250 4984 4985) #pragma warning(disable : 4018 4267 4250 4984 4985)
#include "../ifcparse/IfcHierarchyHelper.h"
#include "../ifcparse/Ifc4x3_add2.h" #include "../ifcparse/Ifc4x3_add2.h"
#include "../ifcparse/IfcHierarchyHelper.h"
#include <boost/math/constants/constants.hpp> #include <boost/math/constants/constants.hpp>
#include <fstream>
const double PI = boost::math::constants::pi<double>(); const double PI = boost::math::constants::pi<double>();
double to_radian(double deg) { return PI * deg / 180; } double to_radian(double deg) { return PI * deg / 180; }
+2 -3
View File
@@ -20,8 +20,9 @@
// TODO: Multiple schemas // TODO: Multiple schemas
#define IfcSchema Ifc2x3 #define IfcSchema Ifc2x3
#include "../ifcparse/IfcFile.h"
#include "../ifcparse/Ifc2x3.h" #include "../ifcparse/Ifc2x3.h"
#include "../ifcparse/IfcFile.h"
#include "../ifcparse/IfcLogger.h"
#if USE_VLD #if USE_VLD
#include <vld.h> #include <vld.h>
@@ -76,7 +77,5 @@ int main(int argc, char** argv) {
std::cout << "The area of this window is " << area << std::endl; std::cout << "The area of this window is " << area << std::endl;
} }
} }
} }
} }