MeshLib C++ Docs
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{
10
11
18template<typename V>
19Box<V> computeBoundingBox( const Vector<V, VertId> & points, VertId firstVert, VertId lastVert, const VertBitSet* region = nullptr, const AffineXf<V>* toWorld = nullptr );
20
25template<typename V>
26inline Box<V> computeBoundingBox( const Vector<V, VertId> & points, const VertBitSet* region = nullptr, const AffineXf<V>* toWorld = nullptr )
27{
28 return computeBoundingBox( points, points.beginId(), points.endId(), region, toWorld );
29}
30
35template<typename V>
36inline Box<V> computeBoundingBox( const Vector<V, VertId> & points, const VertBitSet & region, const AffineXf<V> * toWorld = nullptr )
37{
38 return computeBoundingBox( points, points.beginId(), points.endId(), &region, toWorld );
39}
40
41}
std::vector<T>-like container that requires specific indexing type,
Definition MRVector.h:23
I beginId() const
returns the identifier of the first element
Definition MRVector.h:145
I endId() const
returns backId() + 1
Definition MRVector.h:151
Box< V > computeBoundingBox(const Vector< V, VertId > &points, VertId firstVert, VertId lastVert, const VertBitSet *region=nullptr, const AffineXf< V > *toWorld=nullptr)
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Definition MRAffineXf.h:26
Box given by its min- and max- corners.
Definition MRBox.h:27