|
CDT++
Causal Dynamical Triangulations in C++
|
Tests and views bistellar flips. More...
#include <doctest/doctest.h>#include <spdlog/spdlog.h>#include <numbers>#include "Ergodic_moves_3.hpp"
Include dependency graph for bistellar-flip.cpp:Go to the source code of this file.
Functions | |
| auto | bistellar_triangulation_vertices () -> std::vector< Point_t< 3 > > |
| catch (...) | |
| catch (std::exception const &e) | |
| auto | main (int const argc, char *argv[]) -> int try |
| SCENARIO ("Perform bistellar flip on Delaunay triangulation" *doctest::test_suite("bistellar")) | |
Variables | |
| static std::floating_point auto constexpr | INV_SQRT_2 = 1 / SQRT_2 |
| static std::floating_point auto constexpr | SQRT_2 |
Tests and views bistellar flips.
This is a unit test of the bistellar flip algorithm. The reason it is not in /tests is because it uses CGAL::draw() to display the results, which requires Qt5. Qt5 is extremely heavy and not needed for the other unit tests, so I don't want to require/link it to the test binary.
Definition in file bistellar-flip.cpp.
| #define DOCTEST_CONFIG_IMPLEMENT |
Definition at line 20 of file bistellar-flip.cpp.
| auto bistellar_triangulation_vertices | ( | ) | -> std::vector<Point_t<3>> |
Definition at line 33 of file bistellar-flip.cpp.
| catch | ( | ... | ) |
Definition at line 86 of file bistellar-flip.cpp.
| catch | ( | std::exception const & | e | ) |
Definition at line 80 of file bistellar-flip.cpp.
| auto main | ( | int const | argc, |
| char * | argv[] | ||
| ) | -> int try |
Definition at line 46 of file bistellar-flip.cpp.
| SCENARIO | ( | "Perform bistellar flip on Delaunay triangulation" * | doctest::test_suite"bistellar" | ) |
FIXME: This fails because the triangulation is not valid after the flip neighbor of c has not c as neighbor
Definition at line 92 of file bistellar-flip.cpp.
Referenced by SCENARIO().
|
inlinestaticconstexpr |
Definition at line 31 of file bistellar-flip.cpp.
|
inlinestaticconstexpr |
Definition at line 29 of file bistellar-flip.cpp.