Visual Computing Library
|
List of overloaded boundingBox functions that take in input an object (or a Range of objects) and return its/their bounding box. More...
Functions | |
template<PointConcept PointType> | |
auto | vcl::boundingBox (const PointType &p) |
Compute the bounding box of a single point. | |
template<SegmentConcept SegmentType> | |
auto | vcl::boundingBox (const SegmentType &s) |
Compute the bounding box of a line segment. | |
template<SphereConcept SphereType> | |
auto | vcl::boundingBox (const SphereType &s) |
Compute the bounding box of a sphere. | |
template<TriangleConcept TriangleType> | |
auto | vcl::boundingBox (const TriangleType &t) |
Compute the bounding box of a triangle. | |
template<VertexConcept VertexType> | |
auto | vcl::boundingBox (const VertexType &v) |
Compute the bounding box of a vertex. | |
template<VertexConcept VertexType> | |
auto | vcl::boundingBox (const VertexType *v) |
Compute the bounding box of a vertex pointer. | |
template<FaceConcept FaceType> | |
auto | vcl::boundingBox (const FaceType &f) |
Compute the bounding box of a face. | |
template<FaceConcept FaceType> | |
auto | vcl::boundingBox (const FaceType *f) |
Compute the bounding box of a face pointer. | |
template<EdgeConcept EdgeType> | |
auto | vcl::boundingBox (const EdgeType &e) |
Compute the bounding box of an edge. | |
template<EdgeConcept EdgeType> | |
auto | vcl::boundingBox (const EdgeType *e) |
Compute the bounding box of an edge pointer. | |
template<IteratorConcept Iterator> | |
auto | vcl::boundingBox (Iterator begin, Iterator end) |
Calculates the bounding box of a set of objects. | |
template<Range Rng> | |
auto | vcl::boundingBox (Rng &&r) |
Calculates the bounding box of a range of objects. | |
List of overloaded boundingBox functions that take in input an object (or a Range of objects) and return its/their bounding box.
You can access these algorithms by including #include <vclib/algorithms/core/bounding_box.h>
vcl::boundingBox
function defined in vclib/algorithms/mesh/stat/bounding_box.h
. Compute the bounding box of an edge.
Given an edge e
, this function computes and returns the bounding box of the edge. The bounding box is represented by a vcl::Box
object.
EdgeType | The type of the edge. It must satisfy the EdgeConcept. |
[in] | e | The input edge to compute the bounding box of |
Compute the bounding box of an edge pointer.
Given a pointer to an edge e
, this function computes and returns the bounding box of the edge. The bounding box is represented by a vcl::Box
object.
EdgeType | The type of the edge. It must satisfy the EdgeConcept. |
[in] | e | A pointer to the input edge to compute the bounding box of |
Compute the bounding box of a face.
Given a face f
, this function computes and returns the bounding box of the face. The bounding box is represented by a vcl::Box
object.
FaceType | The type of the face. It must satisfy the FaceConcept. |
[in] | f | The input face to compute the bounding box of |
Compute the bounding box of a face pointer.
Given a pointer to a face f
, this function computes and returns the bounding box of the face. The bounding box is represented by a vcl::Box
object.
FaceType | The type of the face. It must satisfy the FaceConcept. |
[in] | f | A pointer to the input face to compute the bounding box of |
Compute the bounding box of a single point.
Given a point p
, this function computes and returns the bounding box of the point. The bounding box is represented by a vcl::Box
object.
PointType | The type of the point. It must satisfy the PointConcept. |
[in] | p | The input point to compute the bounding box of |
auto vcl::boundingBox | ( | const SegmentType & | s | ) |
Compute the bounding box of a line segment.
Given a line segment s
, this function computes and returns the bounding box of the segment. The bounding box is represented by a vcl::Box
object.
SegmentType | The type of the segment. It must satisfy the SegmentConcept. |
[in] | s | The input line segment to compute the bounding box of |
auto vcl::boundingBox | ( | const SphereType & | s | ) |
Compute the bounding box of a sphere.
Given a sphere s
, this function computes and returns the bounding box of the sphere. The bounding box is represented by a vcl::Box
object.
SphereType | The type of the sphere. It must satisfy the SphereConcept. |
[in] | s | The input sphere to compute the bounding box of |
auto vcl::boundingBox | ( | const TriangleType & | t | ) |
Compute the bounding box of a triangle.
Given a triangle t
, this function computes and returns the bounding box of the triangle. The bounding box is represented by a vcl::Box
object.
TriangleType | The type of the triangle. |
[in] | t | The input triangle to compute the bounding box of |
Compute the bounding box of a vertex.
Given a vertex v
, this function computes and returns the bounding box of the vertex. The bounding box is represented by a vcl::Box
object.
VertexType | The type of the vertex. It must satisfy the VertexConcept. |
[in] | v | The input vertex to compute the bounding box of |
Compute the bounding box of a vertex pointer.
Given a pointer to a vertex v
, this function computes and returns the bounding box of the vertex. The bounding box is represented by a vcl::Box
object.
VertexType | The type of the vertex. It must satisfy the VertexConcept. |
[in] | v | A pointer to the input vertex to compute the bounding box of |
auto vcl::boundingBox | ( | Iterator | begin, |
Iterator | end | ||
) |
Calculates the bounding box of a set of objects.
Given a set of objects iterated in the range [begin, end), computes the bounding box by calling the proper overload of the boundingBox function for each object.
If begin == end, the returned bounding box is invalid.
Iterator | the type of the iterator over the objects. It must satisfy the IteratorConcept. |
[in] | begin | the iterator to the beginning of the range of objects. |
[in] | end | the iterator to the end of the range of objects. |
Calculates the bounding box of a range of objects.
Given a set of objects iterated in the range, computes the bounding box by calling the proper overload of the boundingBox function for each object.
If the range is empty, the returned bounding box is invalid.
Rng | the type of the range of objects. It must satisfy the Range concept. |
[in] | r | the range of objects. |