MeshLib Python Docs
Loading...
Searching...
No Matches
Inheritance diagram for mrmeshpy.Box2i:

Public Member Functions

Vector2i __getitem__ (self, int e)
ConstVector2i __getitem__ (ConstBox2i self, int e)
None __init__ (self)
None __init__ (self, ConstVector2i min, ConstVector2i max)
None __init__ (self, Box2i arg0)
typing.Any __rrshift__ (self, typing.Any box)
None __setitem__ (self, int arg0, ConstVector2i arg1)
Box2i assign (self, ConstBox2i other)
None include (self, ConstVector2i pt)
None include (self, ConstBox2i b)
Box2i intersect (self, ConstBox2i b)
Vector2i max (self)
None max (self, ConstVector2i arg1)
Vector2i min (self)
None min (self, ConstVector2i arg1)
Public Member Functions inherited from mrmeshpy.ConstBox2i
bool __eq__ (self, ConstBox2i a)
ConstVector2i __getitem__ (self, int e)
 __init__ (self, *args, **kwargs)
bool __ne__ (self, ConstBox2i a)
str __repr__ (self)
typing.Any __rlshift__ (self, typing.Any box)
Vector2i center (self)
bool contains (self, ConstVector2i pt)
bool contains (self, ConstBox2i otherbox)
Vector2i corner (self, ConstVector2b c)
int diagonal (self)
Box2i expanded (self, ConstVector2i expansion)
Vector2i getBoxClosestPointTo (self, ConstVector2i pt)
int getDistanceSq (self, ConstBox2i b)
int getDistanceSq (self, ConstVector2i pt)
Vector2i getProjection (self, ConstVector2i pt)
Box2i insignificantlyExpanded (self)
Box2i intersection (self, ConstBox2i b)
bool intersects (self, ConstBox2i b)
Vector2i size (self)
bool valid (self)
int volume (self)

Static Public Member Functions

None __init__ (*args, **kwargs)
None __init__ (*args, **kwargs)
Static Public Member Functions inherited from mrmeshpy.ConstBox2i
Box2i fromMinAndSize (ConstVector2i min, ConstVector2i size)
Vector2b getMaxBoxCorner (ConstVector2i n)
Vector2b getMinBoxCorner (ConstVector2i n)

Additional Inherited Members

Static Public Attributes inherited from mrmeshpy.ConstBox2i
typing elements = 2
Static Protected Attributes inherited from mrmeshpy.ConstBox2i
typing _offsetof_max = 8
typing _offsetof_min = 0

Detailed Description

Generated from:  MR::Box2i

Box given by its min- and max- corners

Constructor & Destructor Documentation

◆ __init__() [1/5]

None mrmeshpy.Box2i.__init__ ( * args,
** kwargs )
static
If the compiler supports `requires`, use that instead of `std::enable_if` here.
Not (only) because it looks cooler, but because of a bug in our binding generator that makes it choke on it: https://github.com/MeshInspector/mrbind/issues/19

◆ __init__() [2/5]

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

◆ __init__() [3/5]

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

◆ __init__() [4/5]

None mrmeshpy.Box2i.__init__ ( self,
ConstVector2i min,
ConstVector2i max )

◆ __init__() [5/5]

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

Member Function Documentation

◆ __getitem__() [1/2]

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

◆ __getitem__() [2/2]

Vector2i mrmeshpy.Box2i.__getitem__ ( self,
int e )

◆ __rrshift__()

typing.Any mrmeshpy.Box2i.__rrshift__ ( self,
typing.Any box )

◆ __setitem__()

None mrmeshpy.Box2i.__setitem__ ( self,
int arg0,
ConstVector2i arg1 )

◆ assign()

Box2i mrmeshpy.Box2i.assign ( self,
ConstBox2i other )

◆ include() [1/2]

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

◆ include() [2/2]

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

◆ intersect()

Box2i mrmeshpy.Box2i.intersect ( self,
ConstBox2i b )

◆ max() [1/2]

Vector2i mrmeshpy.Box2i.max ( self)

Reimplemented from mrmeshpy.ConstBox2i.

◆ max() [2/2]

None mrmeshpy.Box2i.max ( self,
ConstVector2i arg1 )

Reimplemented from mrmeshpy.ConstBox2i.

◆ min() [1/2]

Vector2i mrmeshpy.Box2i.min ( self)

Reimplemented from mrmeshpy.ConstBox2i.

◆ min() [2/2]

None mrmeshpy.Box2i.min ( self,
ConstVector2i arg1 )

Reimplemented from mrmeshpy.ConstBox2i.


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