MeshLib Python Docs
Loading...
Searching...
No Matches
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)
 
str __repr__ (self)
 
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)
 

Static Protected Member Functions

 _pybind11_conduit_v1_ (*args, **kwargs)
 

Detailed Description

Generated from:  MR::Box3i

Box given by its min- and max- corners

Constructor & Destructor Documentation

◆ __init__() [1/4]

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

◆ __init__() [2/4]

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

◆ __init__() [3/4]

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

◆ __init__() [4/4]

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

Member Function Documentation

◆ __eq__()

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

◆ __ne__()

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

◆ __repr__()

str mrmeshpy.Box3i.__repr__ ( self)

◆ _pybind11_conduit_v1_()

mrmeshpy.Box3i._pybind11_conduit_v1_ ( * args,
** kwargs )
staticprotected

◆ _Subscript() [1/2]

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

◆ _Subscript() [2/2]

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

◆ center()

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

◆ contains()

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

◆ diagonal()

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

◆ expanded()

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

◆ fromMinAndSize()

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

◆ getBoxClosestPointTo()

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

◆ getDistanceSq() [1/2]

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

◆ include() [2/2]

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

◆ insignificantlyExpanded()

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

◆ intersect()

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

◆ intersection()

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

◆ intersects()

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

◆ size()

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

◆ valid()

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

◆ volume()

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

Member Data Documentation

◆ elements

typing mrmeshpy.Box3i.elements = 3
static

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