![]() |
Dune-Fufem 2.11-git
|
Loading...
Searching...
No Matches
BoundingBox< CoordType, dim > Class Template Reference
Class for bounding boxes of point clouds. More...
#include <dune/fufem/boundingbox.hh>
Inheritance diagram for BoundingBox< CoordType, dim >:

Public Member Functions | |
| BoundingBox (const CoordType &lower, const CoordType &upper) | |
| Create box from two given points. | |
| BoundingBox (const CoordType &point) | |
| Create "box" from one given point. | |
| BoundingBox (const std::vector< const CoordType > &points) | |
| Create bounding box of a set of points. | |
| void | expandToInclude (const CoordType &point, bool resetCenter=true) |
| expands box to include a new point | |
| void | setCenter () |
| calculates and sets the coordinates of the center of the box | |
| bool | insideNeighborhood (const CoordType &point, const double epsilon) |
| checks whether a point is inside an epsilon neighborhood of the bounding box | |
| bool | contains (const CoordType &c) const |
| bool | intersects (const Box &b) |
| const CoordType & | center () const |
| double | size (int i) |
| const CoordType & | lower () const |
| const CoordType & | upper () const |
Protected Attributes | |
| CoordType | lower_ |
| CoordType | upper_ |
| CoordType | center_ |
Detailed Description
template<class CoordType, int dim>
class BoundingBox< CoordType, dim >
class BoundingBox< CoordType, dim >
Class for bounding boxes of point clouds.
Constructs a bounding box for given point(cloud)s which may be expanded to include further points.
- Template Parameters
-
CoordType the type used to specify point coordinates dim the dimension of the embedding space
Constructor & Destructor Documentation
◆ BoundingBox() [1/3]
template<class CoordType , int dim>
|
inline |
Create box from two given points.
◆ BoundingBox() [2/3]
template<class CoordType , int dim>
|
inline |
Create "box" from one given point.
◆ BoundingBox() [3/3]
template<class CoordType , int dim>
|
inline |
Create bounding box of a set of points.
Member Function Documentation
◆ center()
template<typename CoordType , int dim>
|
inlineinherited |
◆ contains()
template<typename CoordType , int dim>
|
inlineinherited |
◆ expandToInclude()
template<class CoordType , int dim>
|
inline |
expands box to include a new point
This method inserts single points into the point cloud and expands the Box correspondingly.
- Parameters
-
point the point to be included resetCenter flag whether the center of the box shall be recalculated after expanding the box
◆ insideNeighborhood()
template<class CoordType , int dim>
|
inline |
checks whether a point is inside an epsilon neighborhood of the bounding box
- Parameters
-
point the point to be checked epsilon the extension of the box
◆ intersects()
template<typename CoordType , int dim>
|
inlineinherited |
◆ lower()
template<typename CoordType , int dim>
|
inlineinherited |
◆ setCenter()
template<class CoordType , int dim>
|
inline |
calculates and sets the coordinates of the center of the box
◆ size()
◆ upper()
template<typename CoordType , int dim>
|
inlineinherited |
Member Data Documentation
◆ center_
◆ lower_
◆ upper_
The documentation for this class was generated from the following file:
