MeshLib Python Docs
Loading...
Searching...
No Matches
meshlib.mrmeshpy.Box3i Class Reference

Public Member Functions

bool __eq__ (self, Box3i a)
 
None __init__ (self)
 
None __init__ (self, Vector3i min, Vector3i max)
 
None __init__ (self, Box3i a)
 
None __init__ (self, Box3i arg0)
 
bool __ne__ (self, Box3i a)
 
Vector3i center (self)
 
bool contains (self, Vector3i pt)
 
int diagonal (self)
 
Box3i expanded (self, Vector3i expansion)
 
Vector3i getBoxClosestPointTo (self, Vector3i pt)
 
int getDistanceSq (self, Box3i b)
 
int getDistanceSq (self, Vector3i pt)
 
None include (self, Vector3i pt)
 
None include (self, Box3i b)
 
Box3i insignificantlyExpanded (self)
 
Box3i intersect (self, Box3i b)
 
Box3i intersection (self, Box3i b)
 
bool intersects (self, Box3i b)
 
Vector3i size (self)
 
bool valid (self)
 
int volume (self)
 

Static Public Member Functions

Box3i fromMinAndSize (Vector3i min, Vector3i size)
 

Static Public Attributes

typing elements = 3
 

Protected Member Functions

Vector3i _Subscript (self, int e)
 
Vector3i _Subscript (self, int e)
 

Detailed Description

Generated from:  MR::Box3i
Aliases:  Box_Vector3i, Box_Vector3_int

Box given by its min- and max- corners

Constructor & Destructor Documentation

◆ __init__() [1/4]

None meshlib.mrmeshpy.Box3i.__init__ ( self)
create invalid box by default

◆ __init__() [2/4]

None meshlib.mrmeshpy.Box3i.__init__ ( self,
Vector3i min,
Vector3i max )

◆ __init__() [3/4]

None meshlib.mrmeshpy.Box3i.__init__ ( self,
Box3i a )

◆ __init__() [4/4]

None meshlib.mrmeshpy.Box3i.__init__ ( self,
Box3i arg0 )
Implicit copy constructor.

Member Function Documentation

◆ __eq__()

bool meshlib.mrmeshpy.Box3i.__eq__ ( self,
Box3i a )

◆ __ne__()

bool meshlib.mrmeshpy.Box3i.__ne__ ( self,
Box3i a )

◆ _Subscript() [1/2]

Vector3i meshlib.mrmeshpy.Box3i._Subscript ( self,
int e )
protected
min/max access by 0/1 index

◆ _Subscript() [2/2]

Vector3i meshlib.mrmeshpy.Box3i._Subscript ( self,
int e )
protected

◆ center()

Vector3i meshlib.mrmeshpy.Box3i.center ( self)
computes center of the box

◆ contains()

bool meshlib.mrmeshpy.Box3i.contains ( self,
Vector3i pt )
checks whether given point is inside (including the surface) of the box

◆ diagonal()

int meshlib.mrmeshpy.Box3i.diagonal ( self)
computes length from min to max

◆ expanded()

Box3i meshlib.mrmeshpy.Box3i.expanded ( self,
Vector3i expansion )
decreases min and increased max on given value

◆ fromMinAndSize()

Box3i meshlib.mrmeshpy.Box3i.fromMinAndSize ( Vector3i min,
Vector3i size )
static

◆ getBoxClosestPointTo()

Vector3i meshlib.mrmeshpy.Box3i.getBoxClosestPointTo ( self,
Vector3i pt )
returns closest point in the box to given point

◆ getDistanceSq() [1/2]

int meshlib.mrmeshpy.Box3i.getDistanceSq ( self,
Box3i b )
returns squared distance between this box and given one;
returns zero if the boxes touch or intersect

◆ getDistanceSq() [2/2]

int meshlib.mrmeshpy.Box3i.getDistanceSq ( self,
Vector3i pt )
returns squared distance between this box and given point;
returns zero if the point is inside or on the boundary of the box

◆ include() [1/2]

None meshlib.mrmeshpy.Box3i.include ( self,
Box3i b )
minimally increases the box to include another box

◆ include() [2/2]

None meshlib.mrmeshpy.Box3i.include ( self,
Vector3i pt )
minimally increases the box to include given point

◆ insignificantlyExpanded()

Box3i meshlib.mrmeshpy.Box3i.insignificantlyExpanded ( self)
decreases min and increases max to their closest representable value

◆ intersect()

Box3i meshlib.mrmeshpy.Box3i.intersect ( self,
Box3i b )

◆ intersection()

Box3i meshlib.mrmeshpy.Box3i.intersection ( self,
Box3i b )
computes intersection between this and other box

◆ intersects()

bool meshlib.mrmeshpy.Box3i.intersects ( self,
Box3i b )
checks whether this box intersects or touches given box

◆ size()

Vector3i meshlib.mrmeshpy.Box3i.size ( self)
computes size of the box in all dimensions

◆ valid()

bool meshlib.mrmeshpy.Box3i.valid ( self)
true if the box contains at least one point

◆ volume()

int meshlib.mrmeshpy.Box3i.volume ( self)
computes the volume of this box

Member Data Documentation

◆ elements

typing meshlib.mrmeshpy.Box3i.elements = 3
static

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