MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.Box1ll Class Reference

Public Member Functions

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

Static Public Member Functions

Box1ll fromMinAndSize (int min, int size)
 

Static Public Attributes

typing elements = 1
 

Protected Member Functions

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

Static Protected Member Functions

 _pybind11_conduit_v1_ (*args, **kwargs)
 

Detailed Description

Generated from:  MR::Box1ll

Box given by its min- and max- corners

Constructor & Destructor Documentation

◆ __init__() [1/3]

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

◆ __init__() [2/3]

None mrmeshpy.Box1ll.__init__ ( self,
int min,
int max )

◆ __init__() [3/3]

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

Member Function Documentation

◆ __eq__()

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

◆ __ne__()

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

◆ __repr__()

str mrmeshpy.Box1ll.__repr__ ( self)

◆ _pybind11_conduit_v1_()

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

◆ _Subscript() [1/2]

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

◆ _Subscript() [2/2]

int mrmeshpy.Box1ll._Subscript ( self,
int e )
protected

◆ center()

int mrmeshpy.Box1ll.center ( self)
computes center of the box

◆ contains()

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

◆ diagonal()

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

◆ expanded()

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

◆ fromMinAndSize()

Box1ll mrmeshpy.Box1ll.fromMinAndSize ( int min,
int size )
static

◆ getBoxClosestPointTo()

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

◆ getDistanceSq() [1/2]

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

◆ getDistanceSq() [2/2]

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

◆ include() [2/2]

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

◆ insignificantlyExpanded()

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

◆ intersect()

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

◆ intersection()

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

◆ intersects()

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

◆ size()

int mrmeshpy.Box1ll.size ( self)
computes size of the box in all dimensions

◆ valid()

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

◆ volume()

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

Member Data Documentation

◆ elements

typing mrmeshpy.Box1ll.elements = 1
static

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