MeshLib
 
Loading...
Searching...
No Matches
MRComputeBoundingBox.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMeshFwd.h"
4#include "MRBox.h"
5
6namespace MR
7{
8
15template<typename V>
16Box<V> computeBoundingBox( const Vector<V, VertId> & points, VertId firstVert, VertId lastVert, const VertBitSet* region = nullptr, const AffineXf<V>* toWorld = nullptr );
17
22template<typename V>
23inline Box<V> computeBoundingBox( const Vector<V, VertId> & points, const VertBitSet* region = nullptr, const AffineXf<V>* toWorld = nullptr )
24{
25 return computeBoundingBox( points, points.beginId(), points.endId(), region, toWorld );
26}
27
32template<typename V>
33inline Box<V> computeBoundingBox( const Vector<V, VertId> & points, const VertBitSet & region, const AffineXf<V> * toWorld = nullptr )
34{
35 return computeBoundingBox( points, points.beginId(), points.endId(), &region, toWorld );
36}
37
38} // namespace MR
int VertId
Definition MRDotNet/MRMeshFwd.h:51
Definition MRDotNet/MRBitSet.h:39
std::vector<T>-like container that requires specific indexing type,
Definition MRMesh/MRVector.h:19
I beginId() const
returns the identifier of the first element
Definition MRMesh/MRVector.h:122
I endId() const
returns backId() + 1
Definition MRMesh/MRVector.h:126
Box< V > computeBoundingBox(const Vector< V, VertId > &points, VertId firstVert, VertId lastVert, const VertBitSet *region=nullptr, const AffineXf< V > *toWorld=nullptr)
Definition MRCameraOrientationPlugin.h:8
Definition MRMesh/MRAffineXf.h:14
Box given by its min- and max- corners.
Definition MRMesh/MRBox.h:25