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

Public Member Functions

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

Static Public Member Functions

Box3ll fromMinAndSize (Vector3ll min, Vector3ll size)
 

Static Public Attributes

typing elements = 3
 

Protected Member Functions

Vector3ll _Subscript (self, int e)
 
Vector3ll _Subscript (self, int e)
 

Detailed Description

Generated from:  MR::Box3ll
Aliases:  Box_Vector3_long_long

Box given by its min- and max- corners

Constructor & Destructor Documentation

◆ __init__() [1/3]

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

◆ __init__() [2/3]

None meshlib.mrmeshpy.Box3ll.__init__ ( self,
Vector3ll min,
Vector3ll max )

◆ __init__() [3/3]

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

Member Function Documentation

◆ __eq__()

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

◆ __ne__()

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

◆ _Subscript() [1/2]

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

◆ _Subscript() [2/2]

Vector3ll meshlib.mrmeshpy.Box3ll._Subscript ( self,
int e )
protected

◆ center()

Vector3ll meshlib.mrmeshpy.Box3ll.center ( self)
computes center of the box

◆ contains()

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

◆ diagonal()

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

◆ expanded()

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

◆ fromMinAndSize()

Box3ll meshlib.mrmeshpy.Box3ll.fromMinAndSize ( Vector3ll min,
Vector3ll size )
static

◆ getBoxClosestPointTo()

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

◆ getDistanceSq() [1/2]

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

◆ getDistanceSq() [2/2]

int meshlib.mrmeshpy.Box3ll.getDistanceSq ( self,
Vector3ll 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.Box3ll.include ( self,
Box3ll b )
minimally increases the box to include another box

◆ include() [2/2]

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

◆ insignificantlyExpanded()

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

◆ intersect()

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

◆ intersection()

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

◆ intersects()

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

◆ size()

Vector3ll meshlib.mrmeshpy.Box3ll.size ( self)
computes size of the box in all dimensions

◆ valid()

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

◆ volume()

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

Member Data Documentation

◆ elements

typing meshlib.mrmeshpy.Box3ll.elements = 3
static

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