|
CGAL 5.1 - dD Spatial Searching
|
#include <CGAL/Fuzzy_iso_box.h>
The class Fuzzy_iso_box implements fuzzy d-dimensional (closed) iso boxes. A fuzzy iso box with fuzziness value \( \epsilon\) has as inner and outer approximations a box respectively eroded and dilated by a d-dim square with side length \( \epsilon\). Points are returned depending on their location respective to the approximations, as follows:
| Traits | must be a model of the concept SearchTraits, for example CGAL::Search_traits_2<CGAL::Simple_cartesian<double> >. |
Types | |
| typedef unspecified_type | D |
| Dimension Tag. More... | |
| typedef Traits::Point_d | Point_d |
| Point type. More... | |
| typedef Traits::FT | FT |
| Number type. More... | |
Creation | |
| Fuzzy_iso_box (Point_d p, Point_d q, FT epsilon=FT(0), Traits t=Traits()) | |
Construct a fuzzy iso box specified by the minimal iso box containing p and q and fuzziness value epsilon. More... | |
| Fuzzy_iso_box (Traits::Base::Point_d p, Traits::Base::Point_d q, FT epsilon=FT(0), Traits t=Traits()) | |
Construct a fuzzy iso box specified by the minimal iso box containing p and q and fuzziness value epsilon. More... | |
Operations | |
| bool | contains (Point_d p) const |
Test whether the fuzzy iso box contains p. More... | |
| template<typename Coord_iterator > | |
| bool | contains_point_given_as_coordinates (Coord_iterator begin, Coord_iterator end) const |
Test whether the fuzzy iso box contains the point whose Cartesian coordinates are contained in the range [begin, end). More... | |
| bool | inner_range_intersects (const Kd_tree_rectangle< FT, D > &rectangle) const |
| Test whether the inner box intersects the rectangle associated with a node of a tree. More... | |
| bool | outer_range_contains (const Kd_tree_rectangle< FT, D > &rectangle) const |
| Test whether the outer box encloses the rectangle associated with a node of a tree. More... | |
| typedef unspecified_type CGAL::Fuzzy_iso_box< Traits >::D |
Dimension Tag.
| typedef Traits::FT CGAL::Fuzzy_iso_box< Traits >::FT |
Number type.
| typedef Traits::Point_d CGAL::Fuzzy_iso_box< Traits >::Point_d |
Point type.
| CGAL::Fuzzy_iso_box< Traits >::Fuzzy_iso_box | ( | Point_d | p, |
| Point_d | q, | ||
| FT | epsilon = FT(0), |
||
| Traits | t = Traits() |
||
| ) |
Construct a fuzzy iso box specified by the minimal iso box containing p and q and fuzziness value epsilon.
p must be lexicographically smaller than q. | CGAL::Fuzzy_iso_box< Traits >::Fuzzy_iso_box | ( | Traits::Base::Point_d | p, |
| Traits::Base::Point_d | q, | ||
| FT | epsilon = FT(0), |
||
| Traits | t = Traits() |
||
| ) |
Construct a fuzzy iso box specified by the minimal iso box containing p and q and fuzziness value epsilon.
Traits is Search_traits_adapter<Key,PointPropertyMap,BaseTraits>.p must be lexicographically smaller than q. | bool CGAL::Fuzzy_iso_box< Traits >::contains | ( | Point_d | p | ) | const |
Test whether the fuzzy iso box contains p.
| bool CGAL::Fuzzy_iso_box< Traits >::contains_point_given_as_coordinates | ( | Coord_iterator | begin, |
| Coord_iterator | end | ||
| ) | const |
Test whether the fuzzy iso box contains the point whose Cartesian coordinates are contained in the range [begin, end).
| bool CGAL::Fuzzy_iso_box< Traits >::inner_range_intersects | ( | const Kd_tree_rectangle< FT, D > & | rectangle | ) | const |
Test whether the inner box intersects the rectangle associated with a node of a tree.
| bool CGAL::Fuzzy_iso_box< Traits >::outer_range_contains | ( | const Kd_tree_rectangle< FT, D > & | rectangle | ) | const |
Test whether the outer box encloses the rectangle associated with a node of a tree.