Workspace 6.21.5
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
BoundingBoxMinimal Class Reference

#include <Mesh/Geometry/boundingboxminimal.h>

Public Member Functions

 BoundingBoxMinimal ()
 
 BoundingBoxMinimal (const BoundingBox &box)
 
 BoundingBoxMinimal (const Vector3d &p_min, const Vector3d p_max)
 
 BoundingBoxMinimal (const Vector3d &point)
 
Vector3d calculateCenter () const
 
bool contains (const Vector3d &p) const
 
void expand (const BoundingBoxMinimal &box)
 
void expand (const Vector3d &p)
 
bool isEmpty () const
 
bool isSinglePoint () const
 
bool isValid () const
 
bool operator== (const BoundingBoxMinimal &rhs) const
 

Static Public Member Functions

static bool intersect (const BoundingBoxMinimal &a, const BoundingBoxMinimal &b)
 

Public Attributes

Vector3d max
 
Vector3d min
 

Constructor & Destructor Documentation

◆ BoundingBoxMinimal() [1/4]

BoundingBoxMinimal ( )
inline

◆ BoundingBoxMinimal() [2/4]

BoundingBoxMinimal ( const Vector3d point)
inline

◆ BoundingBoxMinimal() [3/4]

BoundingBoxMinimal ( const Vector3d p_min,
const Vector3d  p_max 
)
inline

◆ BoundingBoxMinimal() [4/4]

BoundingBoxMinimal ( const BoundingBox box)
inline

Member Function Documentation

◆ calculateCenter()

Vector3d calculateCenter ( ) const
inline
Returns
The geometric centre of the bounding box.

◆ contains()

bool contains ( const Vector3d p) const
inline
Parameters
pPoint to test against the bounding box.
Returns
true if the point is contained within the bounds, false otherwise.

◆ expand() [1/2]

void expand ( const BoundingBoxMinimal box)
inline
Parameters
boxThe box to incorporate into the bounding box domain.

Expand the bounding box to encompass the specified box.

◆ expand() [2/2]

void expand ( const Vector3d p)
inline
Parameters
pPoint to incorporate into the bounding box domain.

Expand the bounding box to encompass the specified point.

◆ intersect()

static bool intersect ( const BoundingBoxMinimal a,
const BoundingBoxMinimal b 
)
inlinestatic

◆ isEmpty()

bool isEmpty ( ) const
inline

◆ isSinglePoint()

bool isSinglePoint ( ) const
inline

Users will need to ask isEmpty() (or isValid()) before using this.

◆ isValid()

bool isValid ( ) const
inline

◆ operator==()

bool operator== ( const BoundingBoxMinimal rhs) const
inline

Member Data Documentation

◆ max

Vector3d max

◆ min

Vector3d min