mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-03 21:38:12 +00:00
examples: fix missing includes
This commit is contained in:
committed by
Thomas Krijnen
parent
eb50be5c52
commit
28c7da2336
@@ -25,12 +25,13 @@
|
|||||||
// Sections and page number for this document are cited in the code comments.
|
// Sections and page number for this document are cited in the code comments.
|
||||||
|
|
||||||
// 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; }
|
||||||
|
|||||||
@@ -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>
|
||||||
@@ -29,13 +30,13 @@
|
|||||||
|
|
||||||
int main(int argc, char** argv) {
|
int main(int argc, char** argv) {
|
||||||
|
|
||||||
if ( argc != 2 ) {
|
if (argc != 2) {
|
||||||
std::cout << "usage: IfcParseExamples <filename.ifc>" << std::endl;
|
std::cout << "usage: IfcParseExamples <filename.ifc>" << std::endl;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Redirect the output (both progress and log) to stdout
|
// Redirect the output (both progress and log) to stdout
|
||||||
Logger::SetOutput(&std::cout,&std::cout);
|
Logger::SetOutput(&std::cout, &std::cout);
|
||||||
|
|
||||||
// Parse the IFC file provided in argv[1]
|
// Parse the IFC file provided in argv[1]
|
||||||
IfcParse::IfcFile file(argv[1]);
|
IfcParse::IfcFile file(argv[1]);
|
||||||
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user