MeshLib C++ Docs
Loading...
Searching...
No Matches
MRMeshC/MRBox.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMeshFwd.h"
4#include "MRVector3.h"
5
7
13
16
19
21MRMESHC_API bool mrBox3fValid( const MRBox3f* box );
22
25
28
30MRMESHC_API float mrBox3fVolume( const MRBox3f* box );
31
34
40
43
46
48MRMESHC_API bool mrBox3iValid( const MRBox3i* box );
49
52
55
58
MRMESHC_API int mrBox3iVolume(const MRBox3i *box)
computes the volume of this box
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 MRVector3f mrBox3fSize(const MRBox3f *box)
computes size of the box in all dimensions
MR_EXTERN_C_BEGIN struct MRBox3f MRBox3f
MRMESHC_API MRVector3i mrBox3iCenter(const MRBox3i *box)
computes center of the box
MRMESHC_API float mrBox3fDiagonal(const MRBox3f *box)
computes length from min to max
MRMESHC_API MRVector3i mrBox3iSize(const MRBox3i *box)
computes size of the box in all dimensions
MRMESHC_API bool mrBox3fValid(const MRBox3f *box)
true if the box contains at least one point
MRMESHC_API MRBox3i mrBox3iFromMinAndSize(const MRVector3i *min, const MRVector3i *size)
creates box with given min value and size
MRMESHC_API MRBox3i mrBox3iNew(void)
creates invalid box by default
MRMESHC_API MRVector3f mrBox3fCenter(const MRBox3f *box)
computes center of the box
MRMESHC_API bool mrBox3iValid(const MRBox3i *box)
true if the box contains at least one point
MRMESHC_API float mrBox3fVolume(const MRBox3f *box)
computes the volume of this box
struct MRBox3i MRBox3i
#define MR_EXTERN_C_BEGIN
Definition MRMeshC/MRMeshFwd.h:26
#define MR_EXTERN_C_END
Definition MRMeshC/MRMeshFwd.h:27
#define MRMESHC_API
Definition MRMeshC/MRMeshFwd.h:19
Definition MRMeshC/MRBox.h:9
MRVector3f max
Definition MRMeshC/MRBox.h:11
MRVector3f min
Definition MRMeshC/MRBox.h:10
Definition MRMeshC/MRBox.h:36
MRVector3i min
Definition MRMeshC/MRBox.h:37
MRVector3i max
Definition MRMeshC/MRBox.h:38
three-dimensional vector of floats
Definition MRMeshC/MRVector3.h:9
three-dimensional vector of ints
Definition MRMeshC/MRVector3.h:46