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

Public Member Functions

bool __eq__ (self, Box1i a)
 
int __getitem__ (self, int e)
 
int __getitem__ (self, int e)
 
None __init__ (self)
 
None __init__ (self, int min, int max)
 
None __init__ (self, Box1i arg0)
 
bool __ne__ (self, Box1i a)
 
str __repr__ (self)
 
None __setitem__ (self, int arg0, int arg1)
 
int center (self)
 
bool contains (self, int pt)
 
bool contains (self, Box1i otherbox)
 
int corner (self, bool c)
 
int diagonal (self)
 
Box1i expanded (self, int expansion)
 
int getBoxClosestPointTo (self, int pt)
 
int getDistanceSq (self, Box1i b)
 
int getDistanceSq (self, int pt)
 
None include (self, int pt)
 
None include (self, Box1i b)
 
Box1i insignificantlyExpanded (self)
 
Box1i intersect (self, Box1i b)
 
Box1i intersection (self, Box1i b)
 
bool intersects (self, Box1i b)
 
int size (self)
 
bool valid (self)
 
int volume (self)
 

Static Public Member Functions

None __init__ (*args, **kwargs)
 
None __init__ (*args, **kwargs)
 
Box1i fromMinAndSize (int min, int size)
 
bool getMaxBoxCorner (int n)
 
bool getMinBoxCorner (int n)
 

Static Public Attributes

typing elements = 1
 

Detailed Description

Generated from:  MR::Box1i

Box given by its min- and max- corners

Constructor & Destructor Documentation

◆ __init__() [1/5]

None mrmeshpy.Box1i.__init__ ( * args,
** kwargs )
static
skip initialization of min/max

◆ __init__() [2/5]

None mrmeshpy.Box1i.__init__ ( * args,
** kwargs )
static

◆ __init__() [3/5]

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

◆ __init__() [4/5]

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

◆ __init__() [5/5]

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

Member Function Documentation

◆ __eq__()

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

◆ __getitem__() [1/2]

int mrmeshpy.Box1i.__getitem__ ( self,
int e )
min/max access by 0/1 index

◆ __getitem__() [2/2]

int mrmeshpy.Box1i.__getitem__ ( self,
int e )

◆ __ne__()

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

◆ __repr__()

str mrmeshpy.Box1i.__repr__ ( self)

◆ __setitem__()

None mrmeshpy.Box1i.__setitem__ ( self,
int arg0,
int arg1 )

◆ center()

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

◆ contains() [1/2]

bool mrmeshpy.Box1i.contains ( self,
Box1i otherbox )
checks whether given box is fully inside (the surfaces may touch) of this box

◆ contains() [2/2]

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

◆ corner()

int mrmeshpy.Box1i.corner ( self,
bool c )
returns the corner of this box as specified by given bool-vector:
1 element in (c) means take min's coordinate,
0 element in (c) means take max's coordinate

◆ diagonal()

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

◆ expanded()

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

◆ fromMinAndSize()

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

◆ getBoxClosestPointTo()

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

◆ getDistanceSq() [1/2]

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

◆ getDistanceSq() [2/2]

int mrmeshpy.Box1i.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

◆ getMaxBoxCorner()

bool mrmeshpy.Box1i.getMaxBoxCorner ( int n)
static
considering all planes with given normal and arbitrary shift: dot(n,x) = d
finds the box's corner for which d is maximal

◆ getMinBoxCorner()

bool mrmeshpy.Box1i.getMinBoxCorner ( int n)
static
considering all planes with given normal and arbitrary shift: dot(n,x) = d
finds the box's corner for which d is minimal

◆ include() [1/2]

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

◆ include() [2/2]

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

◆ insignificantlyExpanded()

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

◆ intersect()

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

◆ intersection()

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

◆ intersects()

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

◆ size()

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

◆ valid()

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

◆ volume()

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

Member Data Documentation

◆ elements

typing mrmeshpy.Box1i.elements = 1
static

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