NavMap
Loading...
Searching...
No Matches
test_simplify.cpp File Reference
#include <gtest/gtest.h>
#include <algorithm>
#include <cmath>
#include <cstdint>
#include <cstdio>
#include <functional>
#include <map>
#include <set>
#include <utility>
#include <vector>
#include "navmap_core/NavMap.hpp"
#include "navmap_core/Simplify.hpp"
Include dependency graph for test_simplify.cpp:

Classes

struct  SimplifyParams
 Parameters of simplify(). More...

Typedefs

using NavCelId
 Index of a triangle (NavCel) within the global mesh.

Functions

 TEST (Simplify, AnInclineStaysOnItsPlane)
 TEST (Simplify, ColorsFollowTheVertices)
 TEST (Simplify, CurvedTerrainStaysWithinTheErrorAndZeroErrorKeepsIt)
 TEST (Simplify, DegenerateInputsAreSafe)
 TEST (Simplify, FlatFloorShrinksAndEveryPointKeepsItsLayerValues)
 TEST (Simplify, HolesAndStackedFloorsAreKept)
 TEST (Simplify, LinkEndsSurviveAndAreRemapped)
 TEST (Simplify, MaxEdgeLengthBoundsTheNavCels)
 TEST (Simplify, OnlyTheChosenLayersAreKept)
 TEST (Simplify, WithoutLayersAFlatSquareBecomesAFewNavCels)

Typedef Documentation

◆ NavCelId

using NavCelId

Index of a triangle (NavCel) within the global mesh.

Function Documentation

◆ TEST() [1/10]

TEST ( Simplify ,
AnInclineStaysOnItsPlane  )

◆ TEST() [2/10]

TEST ( Simplify ,
ColorsFollowTheVertices  )

◆ TEST() [3/10]

TEST ( Simplify ,
CurvedTerrainStaysWithinTheErrorAndZeroErrorKeepsIt  )

◆ TEST() [4/10]

TEST ( Simplify ,
DegenerateInputsAreSafe  )

◆ TEST() [5/10]

TEST ( Simplify ,
FlatFloorShrinksAndEveryPointKeepsItsLayerValues  )

◆ TEST() [6/10]

TEST ( Simplify ,
HolesAndStackedFloorsAreKept  )

◆ TEST() [7/10]

TEST ( Simplify ,
LinkEndsSurviveAndAreRemapped  )

◆ TEST() [8/10]

TEST ( Simplify ,
MaxEdgeLengthBoundsTheNavCels  )

◆ TEST() [9/10]

TEST ( Simplify ,
OnlyTheChosenLayersAreKept  )

◆ TEST() [10/10]

TEST ( Simplify ,
WithoutLayersAFlatSquareBecomesAFewNavCels  )