23#ifndef VCL_MESH_ELEM_ALGORITHMS_BOUNDING_BOX_H
24#define VCL_MESH_ELEM_ALGORITHMS_BOUNDING_BOX_H
26#include <vclib/mesh/elements.h>
28#include <vclib/space/core.h>
46template<VertexConcept VertexType>
67template<VertexConcept VertexType>
86template<FaceConcept FaceType>
89 using VertexType = FaceType::VertexType;
92 for (
const VertexType* v : f.vertices())
111template<FaceConcept FaceType>
114 using VertexType = FaceType::VertexType;
117 for (
const VertexType* v : f->vertices())
118 b.
add(v->position());
135template<EdgeConcept EdgeType>
138 using VertexType = EdgeType::VertexType;
141 for (
const VertexType* v : e.vertices())
142 b.
add(v->position());
160template<EdgeConcept EdgeType>
163 using VertexType = EdgeType::VertexType;
166 for (
const VertexType* v : e->vertices())
167 b.
add(v->position());
A class representing a box in N-dimensional space.
Definition box.h:46
void add(const PointT &p)
Adds the given point to the current box, expanding this box in order to contain also the values of th...
Definition box.h:385
auto boundingBox(const PointType &p)
Compute the bounding box of a single point.
Definition bounding_box.h:59