WinMSYS2: use namespace GeometryUtils for Polygon, de-conflict wingdi.h
This commit is contained in:
parent
82a64f7de6
commit
12212d23e4
6 changed files with 11 additions and 1 deletions
|
|
@ -3,6 +3,8 @@
|
|||
#include "linalg.h"
|
||||
#include <vector>
|
||||
|
||||
namespace GeometryUtils {
|
||||
|
||||
typedef std::vector<Vector3d> Polygon;
|
||||
typedef std::vector<Polygon> Polygons;
|
||||
|
||||
|
|
@ -25,7 +27,6 @@ struct IndexedPolyMesh {
|
|||
std::vector<std::vector<IndexedFace> > polygons;
|
||||
};
|
||||
|
||||
namespace GeometryUtils {
|
||||
bool tessellatePolygon(const Polygon &polygon,
|
||||
Polygons &triangles,
|
||||
const Vector3f *normal = NULL);
|
||||
|
|
|
|||
|
|
@ -35,6 +35,8 @@
|
|||
#include <boost/foreach.hpp>
|
||||
#include <boost/unordered_set.hpp>
|
||||
|
||||
using namespace GeometryUtils;
|
||||
|
||||
namespace CGALUtils {
|
||||
|
||||
template<typename Polyhedron>
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@
|
|||
#include <boost/foreach.hpp>
|
||||
#include <boost/unordered_set.hpp>
|
||||
|
||||
using namespace GeometryUtils;
|
||||
|
||||
static void add_outline_to_poly(CGAL_Nef_polyhedron2::Explorer &explorer,
|
||||
CGAL_Nef_polyhedron2::Explorer::Halfedge_around_face_const_circulator circ,
|
||||
|
|
|
|||
|
|
@ -35,6 +35,8 @@
|
|||
#include <boost/foreach.hpp>
|
||||
#include <boost/unordered_set.hpp>
|
||||
|
||||
using namespace GeometryUtils;
|
||||
|
||||
static CGAL_Nef_polyhedron *createNefPolyhedronFromPolySet(const PolySet &ps)
|
||||
{
|
||||
if (ps.isEmpty()) return new CGAL_Nef_polyhedron();
|
||||
|
|
|
|||
|
|
@ -11,6 +11,8 @@
|
|||
|
||||
#include <boost/foreach.hpp>
|
||||
|
||||
using namespace GeometryUtils;
|
||||
|
||||
namespace PolysetUtils {
|
||||
|
||||
// Project all polygons (also back-facing) into a Polygon2d instance.
|
||||
|
|
|
|||
|
|
@ -12,6 +12,8 @@
|
|||
#include <boost/logic/tribool.hpp>
|
||||
BOOST_TRIBOOL_THIRD_STATE(unknown)
|
||||
|
||||
using namespace GeometryUtils;
|
||||
|
||||
class PolySet : public Geometry
|
||||
{
|
||||
public:
|
||||
|
|
|
|||
Loading…
Reference in a new issue