MeshLib C++ Docs
Loading...
Searching...
No Matches
MRBox.h File Reference
#include "MRMeshFwd.h"
#include "MRVector3.h"

Go to the source code of this file.

Classes

struct  MRBox3f
 
struct  MRBox3i
 

Typedefs

typedef MR_EXTERN_C_BEGIN struct MRBox3f MRBox3f
 
typedef struct MRBox3i MRBox3i
 

Functions

MRMESHC_API MRBox3f mrBox3fNew (void)
 creates invalid box by default
 
MRMESHC_API MRBox3f mrBox3fFromMinAndSize (const MRVector3f *min, const MRVector3f *size)
 creates box with given min value and size
 
MRMESHC_API bool mrBox3fValid (const MRBox3f *box)
 true if the box contains at least one point
 
MRMESHC_API MRVector3f mrBox3fSize (const MRBox3f *box)
 computes size of the box in all dimensions
 
MRMESHC_API float mrBox3fDiagonal (const MRBox3f *box)
 computes length from min to max
 
MRMESHC_API float mrBox3fVolume (const MRBox3f *box)
 computes the volume of this box
 
MRMESHC_API MRVector3f mrBox3fCenter (const MRBox3f *box)
 computes center of the box
 
MRMESHC_API MRBox3i mrBox3iNew (void)
 creates invalid box by default
 
MRMESHC_API MRBox3i mrBox3iFromMinAndSize (const MRVector3i *min, const MRVector3i *size)
 creates box with given min value and size
 
MRMESHC_API bool mrBox3iValid (const MRBox3i *box)
 true if the box contains at least one point
 
MRMESHC_API MRVector3i mrBox3iSize (const MRBox3i *box)
 computes size of the box in all dimensions
 
MRMESHC_API int mrBox3iVolume (const MRBox3i *box)
 computes the volume of this box
 
MRMESHC_API MRVector3i mrBox3iCenter (const MRBox3i *box)
 computes center of the box
 

Typedef Documentation

◆ MRBox3f

typedef MR_EXTERN_C_BEGIN struct MRBox3f MRBox3f

◆ MRBox3i

typedef struct MRBox3i MRBox3i

Function Documentation

◆ mrBox3fCenter()

MRMESHC_API MRVector3f mrBox3fCenter ( const MRBox3f * box)

computes center of the box

◆ mrBox3fDiagonal()

MRMESHC_API float mrBox3fDiagonal ( const MRBox3f * box)

computes length from min to max

◆ mrBox3fFromMinAndSize()

MRMESHC_API MRBox3f mrBox3fFromMinAndSize ( const MRVector3f * min,
const MRVector3f * size )

creates box with given min value and size

◆ mrBox3fNew()

MRMESHC_API MRBox3f mrBox3fNew ( void )

creates invalid box by default

◆ mrBox3fSize()

MRMESHC_API MRVector3f mrBox3fSize ( const MRBox3f * box)

computes size of the box in all dimensions

◆ mrBox3fValid()

MRMESHC_API bool mrBox3fValid ( const MRBox3f * box)

true if the box contains at least one point

◆ mrBox3fVolume()

MRMESHC_API float mrBox3fVolume ( const MRBox3f * box)

computes the volume of this box

◆ mrBox3iCenter()

MRMESHC_API MRVector3i mrBox3iCenter ( const MRBox3i * box)

computes center of the box

◆ mrBox3iFromMinAndSize()

MRMESHC_API MRBox3i mrBox3iFromMinAndSize ( const MRVector3i * min,
const MRVector3i * size )

creates box with given min value and size

◆ mrBox3iNew()

MRMESHC_API MRBox3i mrBox3iNew ( void )

creates invalid box by default

◆ mrBox3iSize()

MRMESHC_API MRVector3i mrBox3iSize ( const MRBox3i * box)

computes size of the box in all dimensions

◆ mrBox3iValid()

MRMESHC_API bool mrBox3iValid ( const MRBox3i * box)

true if the box contains at least one point

◆ mrBox3iVolume()

MRMESHC_API int mrBox3iVolume ( const MRBox3i * box)

computes the volume of this box