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

Public Member Functions

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

Static Public Member Functions

Box3d fromMinAndSize (Vector3d min, Vector3d size)
 

Static Public Attributes

typing elements = 3
 

Protected Member Functions

Vector3d _Subscript (self, int e)
 
Vector3d _Subscript (self, int e)
 

Detailed Description

Generated from:  MR::Box3d
Aliases:  Box_Vector3_double, Box_Vector3d

Box given by its min- and max- corners

Constructor & Destructor Documentation

◆ __init__() [1/4]

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

◆ __init__() [2/4]

None meshlib.mrmeshpy.Box3d.__init__ ( self,
Vector3d min,
Vector3d max )

◆ __init__() [3/4]

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

◆ __init__() [4/4]

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

Member Function Documentation

◆ __eq__()

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

◆ __ne__()

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

◆ _Subscript() [1/2]

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

◆ _Subscript() [2/2]

Vector3d meshlib.mrmeshpy.Box3d._Subscript ( self,
int e )
protected

◆ center()

Vector3d meshlib.mrmeshpy.Box3d.center ( self)
computes center of the box

◆ contains()

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

◆ diagonal()

float meshlib.mrmeshpy.Box3d.diagonal ( self)
computes length from min to max

◆ expanded()

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

◆ fromMinAndSize()

Box3d meshlib.mrmeshpy.Box3d.fromMinAndSize ( Vector3d min,
Vector3d size )
static

◆ getBoxClosestPointTo()

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

◆ getDistanceSq() [1/2]

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

◆ getDistanceSq() [2/2]

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

◆ include() [2/2]

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

◆ insignificantlyExpanded()

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

◆ intersect()

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

◆ intersection()

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

◆ intersects()

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

◆ size()

Vector3d meshlib.mrmeshpy.Box3d.size ( self)
computes size of the box in all dimensions

◆ valid()

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

◆ volume()

float meshlib.mrmeshpy.Box3d.volume ( self)
computes the volume of this box

Member Data Documentation

◆ elements

typing meshlib.mrmeshpy.Box3d.elements = 3
static

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