|
DGtal 2.1.0
|
#include <iostream>#include <vector>#include <algorithm>#include "DGtal/base/Common.h"#include "DGtal/kernel/SpaceND.h"#include "DGtal/geometry/tools/GenericLatticeConvexHull.h"#include "DGtal/geometry/tools/AffineGeometry.h"#include "DGtalCatch.h"Go to the source code of this file.
Functions | |
| std::mt19937 | g (rd()) |
| template<typename Point > | |
| std::vector< Point > | randomPointsInBall (int nb, int R) |
| template<typename Point > | |
| std::vector< Point > | makeRandomLatticePointsFromDirVectors (int nb, const vector< Point > &V) |
| SCENARIO ("GenericLatticeConvexHull< ConvexHullIntegralKernel< 2 > > unit tests", "[genquickhull][integral_kernel][2d]") | |
| SCENARIO ("GenericLatticeConvexHull< ConvexHullIntegralKernel< 3 > > unit tests", "[genquickhull][integral_kernel][3d]") | |
Variables | |
| std::random_device | rd |
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Functions for testing class GenericLatticeConvexHull.
This file is part of the DGtal library.
Definition in file testGenericLatticeConvexHull.cpp.
| std::mt19937 g | ( | rd() | ) |
Referenced by makeRandomLatticePointsFromDirVectors().
| std::vector< Point > makeRandomLatticePointsFromDirVectors | ( | int | nb, |
| const vector< Point > & | V | ||
| ) |
Definition at line 65 of file testGenericLatticeConvexHull.cpp.
References g().
Referenced by SCENARIO().
Definition at line 49 of file testGenericLatticeConvexHull.cpp.
References DGtal::R.
| SCENARIO | ( | "GenericLatticeConvexHull< ConvexHullIntegralKernel< 2 > > unit tests" | , |
| "" | [genquickhull][integral_kernel][2d] | ||
| ) |
Definition at line 93 of file testGenericLatticeConvexHull.cpp.
| SCENARIO | ( | "GenericLatticeConvexHull< ConvexHullIntegralKernel< 3 > > unit tests" | , |
| "" | [genquickhull][integral_kernel][3d] | ||
| ) |
Definition at line 150 of file testGenericLatticeConvexHull.cpp.
References CAPTURE(), GIVEN(), makeRandomLatticePointsFromDirVectors(), and REQUIRE().
| std::random_device rd |
Definition at line 44 of file testGenericLatticeConvexHull.cpp.