Skip to content

Commit

Permalink
Fix test and update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
JacquesOlivierLachaud committed Oct 9, 2024
1 parent 9b78451 commit 0a0c115
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/DGtal/geometry/doc/moduleDigitalConvexity.dox
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,8 @@ Convexity services:
- DigitalConvexity::isFullySubconvex( const LatticePolytope& P, const LatticeSet& StarX ) const tells if a given polytope is fully subconvex to a set of cells, represented as a LatticeSetByIntervals.
- DigitalConvexity::isFullySubconvex( const PointRange& Y, const LatticeSet& StarX ) const tells is the given range of points is fully subconvex to a set of cells, represented as a LatticeSetByIntervals.
- DigitalConvexity::isFullySubconvex( const Point& a, const Point& b, const LatticeSet& StarX ) const tells if the given pair of points is fully subconvex to a set of cells, represented as a LatticeSetByIntervals (three times faster than previous generic method).
- DigitalConvexity::isFullySubconvex( const Point& a, const Point& b, const Point& c, const LatticeSet& StarX ) const tells if the given triplets of points is fully subconvex to a set of cells, represented as a LatticeSetByIntervals (five times faster than previous generic method).
- DigitalConvexity::isFullySubconvex( const Point& a, const Point& b, const Point& c, const LatticeSet& cells ) const tells if the given triplets of points is fully subconvex to a set of cells, represented as a LatticeSetByIntervals (five times faster than previous generic method).
- DigitalConvexity::isFullyCovered( const Point& a, const Point& b, const Point& c, const LatticeSet& cells ) const tells if the given triplets of points is fully covered by the given set of cells, represented as a LatticeSetByIntervals (limited to 3D at the moment).

@subsection dgtal_dconvexity_sec25 Ehrhart polynomial of a lattice polytope

Expand Down
6 changes: 4 additions & 2 deletions src/DGtal/geometry/doc/moduleEnvelope.dox
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ operator defined as:

where:
- \f$ \mathrm{CvxH} \f$ denotes the standard convex hull in Euclidean space,
- \f$ \mathrm{Star} \f$ denotes the set of cells of the cubical grid complex induced by lattice points, whose closure intersects the given set,
- \f$ \mathrm{Star} \f$ denotes the set of cells of the cubical grid complex whose closure intersects the given Euclidean set,
- \f$ \mathrm{Skel} \f$ denotes the skeleton of a cell complex, i.e. the smallest cell complex whose star is equal to the input cell complex,
- \f$ \mathrm{Extr} \f$ returns the set of lattice points that are vertices of cells of the given cell complex.
- \f$ \mathrm{Extr} \f$ returns the set of lattice points that are vertices of cells of the given cell complex,
- \f$ \mathrm{Cover} \f$ denotes the set of cells of the cubical grid complex which have a non empty intersection with the given Euclidean set.

The envelope operator is the limit of the iterated repetition of
operator \f$ \mathrm{FC} \f$. It is proven that this sequence achieves
Expand Down Expand Up @@ -105,6 +106,7 @@ intermediate steps, which can be useful in some contexts.
- DigitalConvexity::Extr computes the extremal vertices of a range of cells.
- DigitalConvexity::ExtrCvxH computes the extremal vertices of the convex hull of a range of lattice points.
- DigitalConvexity::ExtrSkel computes the extremal vertices of the skeleton of a range of cells.
- DigitalConvexity::CoverCvxH computes the set of lattice cells \f$ \mathrm{Cover}(\mathrm{CvxH}(a,b,c)) \f$, i.e. the cells that have a non-empty intersection with the convex hull of the given triangle (limited to 3D at the moment).

\b Representations and \b conversions

Expand Down
2 changes: 1 addition & 1 deletion tests/geometry/volumes/testConvexityHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -781,6 +781,6 @@ SCENARIO( "ConvexityHelper< 3 > open triangle unit tests",
OS.getPoints( POS );
CAPTURE( PCS, POS );
REQUIRE( PCS.size() == 21 );
REQUIRE( POS.size() == 4 );
REQUIRE( POS.size() == 3 );
}

0 comments on commit 0a0c115

Please sign in to comment.