MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::VoxelsVolumeMinMax< T > Struct Template Reference

#include <MRVoxels/MRVoxelsVolume.h>

Inheritance diagram for MR::VoxelsVolumeMinMax< T >:

Additional Inherited Members

Public Types inherited from MR::VoxelsVolume< T >
using ValueType = typename VoxelTraits<T>::ValueType
Public Types inherited from MR::Box< T >
using VTraits
using T
using Vb
using VbTraits
 if V is Vector3<T> then Vb is Vector3b
Public Member Functions inherited from MR::VoxelsVolume< T >
size_t heapBytes () const
Public Member Functions inherited from MR::Box< T >
const Toperator[] (int e) const
 min/max access by 0/1 index
Toperator[] (int e)
 Box ()
 create invalid box by default
 Box (const T &min, const T &max)
 Box (NoInit)
 skip initialization of min/max
 Box (NoInit)
 MR_REQUIRES_IF_SUPPORTED (!std::is_same_v< T, U >) explicit Box(const Box< U > &a)
bool valid () const
 true if the box contains at least one point
T center () const
 computes center of the box
T corner (const Vb &c) const
T size () const
 computes size of the box in all dimensions
T diagonal () const
 computes length from min to max
T volume () const
 computes the volume of this box
void include (const T &pt)
 minimally increases the box to include given point
void include (const Box &b)
 minimally increases the box to include another box
bool contains (const T &pt) const
 checks whether given point is inside (including the surface) of this box
bool contains (const Box &otherbox) const
 checks whether given box is fully inside (the surfaces may touch) of this box
T getBoxClosestPointTo (const T &pt) const
 returns closest point in the box to given point
bool intersects (const Box &b) const
 checks whether this box intersects or touches given box
Box intersection (const Box &b) const
 computes intersection between this and other box
Boxintersect (const Box &b)
T getDistanceSq (const Box &b) const
T getDistanceSq (const T &pt) const
T getProjection (const T &pt) const
Box expanded (const T &expansion) const
 decreases min and increased max on given value
Box insignificantlyExpanded () const
 decreases min and increases max to their closest representable value
bool operator== (const Box &a) const
bool operator!= (const Box &a) const
Static Public Member Functions inherited from MR::Box< T >
static Box fromMinAndSize (const T &min, const T &size)
static Vb getMinBoxCorner (const T &n)
static Vb getMaxBoxCorner (const T &n)
Public Attributes inherited from MR::VoxelsVolume< T >
data
Vector3i dims
Vector3f voxelSize { 1.f, 1.f, 1.f }
Public Attributes inherited from MR::Box< T >
T min
T max
Static Public Attributes inherited from MR::Box< T >
static constexpr int elements

Detailed Description

template<typename T>
struct MR::VoxelsVolumeMinMax< T >

represents a box in 3D space subdivided on voxels stored in T; and stores minimum and maximum values among all valid voxels


The documentation for this struct was generated from the following file: