mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +00:00
Move include up for M_PI def on MSVC
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
|
// For MSVC to have M_PI
|
||||||
|
#define _USE_MATH_DEFINES
|
||||||
|
#include <cmath>
|
||||||
|
|
||||||
#include "CgalKernel.h"
|
#include "CgalKernel.h"
|
||||||
#include "../../../ifcgeom/schema_agnostic/cgal/CgalConversionResult.h"
|
#include "../../../ifcgeom/schema_agnostic/cgal/CgalConversionResult.h"
|
||||||
|
|
||||||
#define CgalKernel MAKE_TYPE_NAME(CgalKernel)
|
#define CgalKernel MAKE_TYPE_NAME(CgalKernel)
|
||||||
|
|
||||||
// For MSVC to have M_PI
|
|
||||||
#define _USE_MATH_DEFINES
|
|
||||||
#include <cmath>
|
|
||||||
|
|
||||||
bool IfcGeom::CgalKernel::convert(const IfcSchema::IfcPolyLoop* l, cgal_wire_t& result) {
|
bool IfcGeom::CgalKernel::convert(const IfcSchema::IfcPolyLoop* l, cgal_wire_t& result) {
|
||||||
IfcSchema::IfcCartesianPoint::list::ptr points = l->Polygon();
|
IfcSchema::IfcCartesianPoint::list::ptr points = l->Polygon();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user