All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
PolygonShapeTriangulator.h
1 #pragma once
2 
3 #include "Types.h"
4 #include "Space.h"
5 #include "VectorMathDecl.h"
6 #include <vector>
7 
8 namespace Eegeo
9 {
10  namespace Shapes
11  {
12  namespace Polygons
13  {
14  void TriangulatePolygonShape(
15  const std::vector<Space::LatLongAltitude>& exteriorRingVertices,
16  const std::vector<std::vector<Space::LatLongAltitude> >& interiorRings,
17  const float altitudeOffset,
18  dv3& out_ecefCellCenter,
19  std::vector<dv3>& out_ecefTriangleVertices,
20  std::vector<dv3>& out_ecefExteriorRingVertices);
21 
22  void TriangulatePolygonShapeIndexed(
23  const std::vector<Space::LatLong>& exteriorRing,
24  const std::vector<std::vector<Space::LatLong> >& interiorRings,
25  std::vector<u16>& out_triangleIndices);
26  }
27  }
28 }
29