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

Public Member Functions

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

Static Public Member Functions

None __init__ (*args, **kwargs)
None __init__ (*args, **kwargs)
Static Public Member Functions inherited from mrmeshpy.ConstBox2d
Box2d fromMinAndSize (ConstVector2d min, ConstVector2d size)
Vector2b getMaxBoxCorner (ConstVector2d n)
Vector2b getMinBoxCorner (ConstVector2d n)

Additional Inherited Members

Static Public Attributes inherited from mrmeshpy.ConstBox2d
typing elements = 2
Static Protected Attributes inherited from mrmeshpy.ConstBox2d
typing _offsetof_max = 16
typing _offsetof_min = 0

Detailed Description

Generated from:  MR::Box2d

Box given by its min- and max- corners

Constructor & Destructor Documentation

◆ __init__() [1/5]

None mrmeshpy.Box2d.__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.Box2d.__init__ ( * args,
** kwargs )
static

◆ __init__() [3/5]

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

◆ __init__() [4/5]

None mrmeshpy.Box2d.__init__ ( self,
ConstVector2d min,
ConstVector2d max )

◆ __init__() [5/5]

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

Member Function Documentation

◆ __getitem__() [1/2]

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

◆ __getitem__() [2/2]

Vector2d mrmeshpy.Box2d.__getitem__ ( self,
int e )

◆ __rrshift__()

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

◆ __setitem__()

None mrmeshpy.Box2d.__setitem__ ( self,
int arg0,
ConstVector2d arg1 )

◆ assign()

Box2d mrmeshpy.Box2d.assign ( self,
ConstBox2d other )

◆ include() [1/2]

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

◆ include() [2/2]

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

◆ intersect()

Box2d mrmeshpy.Box2d.intersect ( self,
ConstBox2d b )

◆ max() [1/2]

Vector2d mrmeshpy.Box2d.max ( self)

Reimplemented from mrmeshpy.ConstBox2d.

◆ max() [2/2]

None mrmeshpy.Box2d.max ( self,
ConstVector2d arg1 )

Reimplemented from mrmeshpy.ConstBox2d.

◆ min() [1/2]

Vector2d mrmeshpy.Box2d.min ( self)

Reimplemented from mrmeshpy.ConstBox2d.

◆ min() [2/2]

None mrmeshpy.Box2d.min ( self,
ConstVector2d arg1 )

Reimplemented from mrmeshpy.ConstBox2d.


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