DGtal
1.5.beta
|
#include <iostream>
#include <vector>
#include <algorithm>
#include "DGtal/base/Common.h"
#include "DGtal/kernel/SpaceND.h"
#include "DGtal/kernel/domains/HyperRectDomain.h"
#include "DGtal/kernel/sets/DigitalSetBySTLSet.h"
#include "DGtal/topology/KhalimskySpaceND.h"
#include "DGtal/shapes/Shapes.h"
#include "DGtal/geometry/volumes/PConvexity.h"
#include "DGtal/geometry/volumes/DigitalConvexity.h"
#include "DGtalCatch.h"
Go to the source code of this file.
Functions | |
SCENARIO ("PConvexity< Z2 > P-convexity tests", "[p_convexity][2d]") | |
SCENARIO ("PConvexity< Z3 > ball tests", "[p_convexity][3d]") | |
SCENARIO ("PConvexity< Z4 > ball tests", "[p_convexity][4d]") | |
SCENARIO ("DigitalConvexity< Z3 > fully convex and p-convex tetrahedra", "[p_convexity][full_convexity][convex_simplices][3d]") | |
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 P-convexity.
This file is part of the DGtal library.
Definition in file testPConvexity.cpp.
SCENARIO | ( | "DigitalConvexity< Z3 > fully convex and p-convex tetrahedra" | , |
"" | [p_convexity][full_convexity][convex_simplices][3d] | ||
) |
Definition at line 148 of file testPConvexity.cpp.
References domain, DGtal::BoundedLatticePolytope< TSpace >::getPoints(), DGtal::DigitalConvexity< TKSpace >::isFullyConvex(), DGtal::DigitalConvexity< TKSpace >::isFullyConvexFast(), DGtal::DigitalConvexity< TKSpace >::isKConvex(), DGtal::PConvexity< TSpace >::isPConvex(), DGtal::DigitalConvexity< TKSpace >::isSimplexFullDimensional(), DGtal::DigitalConvexity< TKSpace >::makeSimplex(), and REQUIRE().
SCENARIO | ( | "PConvexity< Z2 > P-convexity tests" | , |
"" | [p_convexity][2d] | ||
) |
SCENARIO | ( | "PConvexity< Z3 > ball tests" | , |
"" | [p_convexity][3d] | ||
) |
Definition at line 87 of file testPConvexity.cpp.
References DGtal::DigitalSetByAssociativeContainer< TDomain, TContainer >::begin(), domain, DGtal::DigitalSetByAssociativeContainer< TDomain, TContainer >::end(), GIVEN(), and REQUIRE().
SCENARIO | ( | "PConvexity< Z4 > ball tests" | , |
"" | [p_convexity][4d] | ||
) |
Definition at line 117 of file testPConvexity.cpp.
References DGtal::DigitalSetByAssociativeContainer< TDomain, TContainer >::begin(), domain, DGtal::DigitalSetByAssociativeContainer< TDomain, TContainer >::end(), GIVEN(), and REQUIRE().