MeshLib
 
Loading...
Searching...
No Matches
MRBox3.h
Go to the documentation of this file.
1#pragma once
2#include "MRMeshFwd.h"
3
5
7public ref class Box3f
8{
9public:
13 Box3f( Vector3f^ min, Vector3f^ max );
15
17 static Box3f^ fromMinAndSize( Vector3f^ min, Vector3f^ size );
18
19 property Vector3f^ Min { Vector3f^ get(); void set( Vector3f^ value ); }
20 property Vector3f^ Max { Vector3f^ get(); void set( Vector3f^ value ); }
21
27 float Diagonal();
29 float Volume();
31 bool Valid();
32
33private:
34 MR::Box3f* box_;
35
36 Vector3f^ min_;
37 Vector3f^ max_;
38
39internal:
40 Box3f( MR::Box3f* box );
41 MR::Box3f* box() { return box_; }
42};
43
45
#define MR_DOTNET_NAMESPACE_BEGIN
Definition MRDotNet/MRMeshFwd.h:42
#define MR_DOTNET_NAMESPACE_END
Definition MRDotNet/MRMeshFwd.h:43
Box given by its min- and max- corners.
Definition MRBox3.h:8
property Vector3f Max
Definition MRBox3.h:20
static Box3f fromMinAndSize(Vector3f^ min, Vector3f^ size)
create box from min-corner and size
property Vector3f Min
Definition MRBox3.h:19
Box3f()
create invalid box by default
bool Valid()
true if the box contains at least one point
Vector3f Size()
computes size of the box in all dimensions
Box3f(Vector3f^ min, Vector3f^ max)
create box with given corners
float Volume()
computes the volume of this box
void set(Vector3f^ value)
Vector3f Center()
computes center of the box
float Diagonal()
computes length from min to max
represents a 3-dimentional float-typed vector
Definition MRDotNet/MRVector3.h:8