Visual Computing Library
|
List of utility functions for boxes having 3 dimensions. More...
Functions | |
template<Box3Concept BoxType> | |
auto | vcl::boxVertex (const BoxType &box, uint i) -> BoxType::PointType |
Returns the ith vertex of a 3D box. | |
template<Box3Concept BoxType> | |
auto | vcl::boxEdge (const BoxType &box, uint i) -> Segment< typename BoxType::PointType > |
Returns the ith edge of a 3D box. | |
List of utility functions for boxes having 3 dimensions.
The order of the vertices, and edges is as follows:
The order of the faces is as follows:
You can access these algorithms by including #include <vclib/algorithms/core/box/box3.h>
auto vcl::boxEdge | ( | const BoxType & | box, |
uint | i | ||
) | -> Segment<typename BoxType::PointType> |
Returns the ith edge of a 3D box.
BoxType | The type of the box. |
[in] | box | The box. |
[in] | i | The index of the edge. |
auto vcl::boxVertex | ( | const BoxType & | box, |
uint | i | ||
) | -> BoxType::PointType |
Returns the ith vertex of a 3D box.
BoxType | The type of the box. |
[in] | box | The box. |
[in] | i | The index of the vertex. |