31 #if defined(DigitalConvexity_RECURSES)
32 #error Recursive header files inclusion detected in DigitalConvexity.h
35 #define DigitalConvexity_RECURSES
37 #if !defined DigitalConvexity_h
39 #define DigitalConvexity_h
47 #include <unordered_set>
48 #include "DGtal/base/Common.h"
49 #include "DGtal/base/Clone.h"
50 #include "DGtal/topology/CCellularGridSpaceND.h"
51 #include "DGtal/topology/KhalimskySpaceND.h"
52 #include "DGtal/geometry/volumes/BoundedLatticePolytope.h"
53 #include "DGtal/geometry/volumes/BoundedRationalPolytope.h"
54 #include "DGtal/geometry/volumes/CellGeometry.h"
72 template <
typename TKSpace >
152 template <
typename Po
intIterator>
180 template <
typename Po
intIterator>
183 PointIterator itB, PointIterator itE );
207 template <
typename Po
intIterator>
239 template <
typename Po
intIterator>
262 template <
typename Po
intIterator>
319 template <
typename Po
intIterator>
516 template <
typename TKSpace>
528 #include "DigitalConvexity.ih"
535 #undef DigitalConvexity_RECURSES
Aim: Represents an nD lattice polytope, i.e. a convex polyhedron bounded with vertices with integer c...
Aim: Represents an nD rational polytope, i.e. a convex polyhedron bounded by vertices with rational c...
Aim: Computes and stores sets of cells and provides methods to compute intersections of lattice and r...
Aim: This class encapsulates its parameter class to indicate that the given parameter is required to ...
Aim: A helper class to build polytopes from digital sets and to check digital k-convexity.
static PointRange insidePoints(const LatticePolytope &polytope)
static RationalPolytope makeRationalSimplex(Integer d, PointIterator itB, PointIterator itE)
static bool isSimplexFullDimensional(std::initializer_list< Point > l)
bool isFullyConvex(const RationalPolytope &P) const
bool isKConvex(const LatticePolytope &P, const Dimension k) const
static bool isSimplexFullDimensional(PointIterator itB, PointIterator itE)
static LatticePolytope makeSimplex(PointIterator itB, PointIterator itE)
SimplexType
The possible types for simplices.
@ UNITARY
When its edges form a unit parallelotope (det = +/- 1)
@ INVALID
When there are not the right number of vertices.
@ DEGENERATED
When the points of the simplex are not in general position.
static SimplexType simplexType(std::initializer_list< Point > l)
static void displaySimplex(std::ostream &out, PointIterator itB, PointIterator itE)
DigitalConvexity(const Self &other)=default
static LatticePolytope makeSimplex(std::initializer_list< Point > l)
Self & operator=(const Self &other)=default
DigitalConvexity()=default
DigitalConvexity(Clone< KSpace > K)
CellGeometry makeCellCover(const RationalPolytope &P, Dimension i=0, Dimension k=KSpace::dimension) const
static RationalPolytope makeRationalSimplex(std::initializer_list< Point > l)
std::vector< Point > PointRange
DGtal::BoundedRationalPolytope< Space > RationalPolytope
bool isFullyConvex(const LatticePolytope &P) const
DGtal::CellGeometry< KSpace > CellGeometry
bool isKSubconvex(const RationalPolytope &P, const CellGeometry &C, const Dimension k) const
static PointRange interiorPoints(const RationalPolytope &polytope)
static const Dimension dimension
bool isKSubconvex(const LatticePolytope &P, const CellGeometry &C, const Dimension k) const
CellGeometry makeCellCover(const LatticePolytope &P, Dimension i=0, Dimension k=KSpace::dimension) const
static PointRange insidePoints(const RationalPolytope &polytope)
bool isFullySubconvex(const RationalPolytope &P, const CellGeometry &C) const
BOOST_CONCEPT_ASSERT((concepts::CCellularGridSpaceND< TKSpace >))
DigitalConvexity(Point lo, Point hi)
DigitalConvexity< TKSpace > Self
bool isKConvex(const RationalPolytope &P, const Dimension k) const
DGtal::BoundedLatticePolytope< Space > LatticePolytope
bool isFullySubconvex(const LatticePolytope &P, const CellGeometry &C) const
void selfDisplay(std::ostream &out) const
static void displaySimplex(std::ostream &out, std::initializer_list< Point > l)
const KSpace & space() const
KSpace myK
The cellular grid space where computations are done.
~DigitalConvexity()=default
DGtal::BoundedLatticePolytope< Space > Polytope
CellGeometry makeCellCover(PointIterator itB, PointIterator itE, Dimension i=0, Dimension k=KSpace::dimension) const
static SimplexType simplexType(PointIterator itB, PointIterator itE)
static PointRange interiorPoints(const LatticePolytope &polytope)
TInteger Integer
Arithmetic ring induced by (+,-,*) and Integer numbers.
DGtal is the top-level namespace which contains all DGtal functions and types.
std::ostream & operator<<(std::ostream &out, const ClosedIntegerHalfPlane< TSpace > &object)
DGtal::uint32_t Dimension
Aim: This concept describes a cellular grid space in nD. In these spaces obtained by cartesian produc...