Public Member Functions | |
| bool | __eq__ (self, ConstBox2i64 a) |
| ConstVector2i64 | __getitem__ (self, int e) |
| __init__ (self, *args, **kwargs) | |
| bool | __ne__ (self, ConstBox2i64 a) |
| str | __repr__ (self) |
| typing.Any | __rlshift__ (self, typing.Any box) |
| Vector2i64 | center (self) |
| bool | contains (self, ConstVector2i64 pt) |
| bool | contains (self, ConstBox2i64 otherbox) |
| Vector2i64 | corner (self, ConstVector2b c) |
| int | diagonal (self) |
| Box2i64 | expanded (self, ConstVector2i64 expansion) |
| Vector2i64 | getBoxClosestPointTo (self, ConstVector2i64 pt) |
| int | getDistanceSq (self, ConstBox2i64 b) |
| int | getDistanceSq (self, ConstVector2i64 pt) |
| Vector2i64 | getProjection (self, ConstVector2i64 pt) |
| Box2i64 | insignificantlyExpanded (self) |
| Box2i64 | intersection (self, ConstBox2i64 b) |
| bool | intersects (self, ConstBox2i64 b) |
| Vector2i64 | size (self) |
| bool | valid (self) |
| int | volume (self) |
| ConstVector2i64 | max (self) |
| ConstVector2i64 | min (self) |
Static Public Member Functions | |
| Box2i64 | fromMinAndSize (ConstVector2i64 min, ConstVector2i64 size) |
| Vector2b | getMaxBoxCorner (ConstVector2i64 n) |
| Vector2b | getMinBoxCorner (ConstVector2i64 n) |
Static Public Attributes | |
| typing | elements = 2 |
Static Protected Attributes | |
| typing | _offsetof_max = 16 |
| typing | _offsetof_min = 0 |
Generated from: MR::Box2i64 Box given by its min- and max- corners
| mrmeshpy.ConstBox2i64.__init__ | ( | self, | |
| * | args, | ||
| ** | kwargs ) |
__init__(*args, **kwargs) Overloaded function. 1. __init__(self: meshlib.mrmeshpy.ConstBox2i64) -> None create invalid box by default 2. __init__(self: meshlib.mrmeshpy.ConstBox2i64, min: meshlib.mrmeshpy.ConstVector2i64, max: meshlib.mrmeshpy.ConstVector2i64) -> None 3. __init__(self: meshlib.mrmeshpy.ConstBox2i64, : meshlib.mrmeshpy.ConstNoInit) -> None 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 4. __init__(self: meshlib.mrmeshpy.ConstBox2i64, arg0: meshlib.mrmeshpy.Box2i64) -> None Implicit copy constructor. 5. __init__(self: meshlib.mrmeshpy.ConstBox2i64, : meshlib.mrmeshpy.Box2i64) -> None
| bool mrmeshpy.ConstBox2i64.__eq__ | ( | self, | |
| ConstBox2i64 | a ) |
| ConstVector2i64 mrmeshpy.ConstBox2i64.__getitem__ | ( | self, | |
| int | e ) |
min/max access by 0/1 index
| bool mrmeshpy.ConstBox2i64.__ne__ | ( | self, | |
| ConstBox2i64 | a ) |
| str mrmeshpy.ConstBox2i64.__repr__ | ( | self | ) |
| typing.Any mrmeshpy.ConstBox2i64.__rlshift__ | ( | self, | |
| typing.Any | box ) |
| Vector2i64 mrmeshpy.ConstBox2i64.center | ( | self | ) |
computes center of the box
| bool mrmeshpy.ConstBox2i64.contains | ( | self, | |
| ConstBox2i64 | otherbox ) |
checks whether given box is fully inside (the surfaces may touch) of this box
| bool mrmeshpy.ConstBox2i64.contains | ( | self, | |
| ConstVector2i64 | pt ) |
checks whether given point is inside (including the surface) of this box
| Vector2i64 mrmeshpy.ConstBox2i64.corner | ( | self, | |
| ConstVector2b | c ) |
returns the corner of this box as specified by given bool-vector: 0 element in (c) means take min's coordinate, 1 element in (c) means take max's coordinate
| int mrmeshpy.ConstBox2i64.diagonal | ( | self | ) |
computes length from min to max
| Box2i64 mrmeshpy.ConstBox2i64.expanded | ( | self, | |
| ConstVector2i64 | expansion ) |
decreases min and increased max on given value
|
static |
| Vector2i64 mrmeshpy.ConstBox2i64.getBoxClosestPointTo | ( | self, | |
| ConstVector2i64 | pt ) |
returns closest point in the box to given point
| int mrmeshpy.ConstBox2i64.getDistanceSq | ( | self, | |
| ConstBox2i64 | b ) |
returns squared distance between this box and given one; returns zero if the boxes touch or intersect
| int mrmeshpy.ConstBox2i64.getDistanceSq | ( | self, | |
| ConstVector2i64 | pt ) |
returns squared distance between this box and given point; returns zero if the point is inside or on the boundary of the box
|
static |
considering all planes with given normal and arbitrary shift: dot(n,x) = d finds the box's corner for which d is maximal
|
static |
considering all planes with given normal and arbitrary shift: dot(n,x) = d finds the box's corner for which d is minimal
| Vector2i64 mrmeshpy.ConstBox2i64.getProjection | ( | self, | |
| ConstVector2i64 | pt ) |
returns the closest point on the box to the given point for points outside the box this is equivalent to getBoxClosestPointTo
| Box2i64 mrmeshpy.ConstBox2i64.insignificantlyExpanded | ( | self | ) |
decreases min and increases max to their closest representable value
| Box2i64 mrmeshpy.ConstBox2i64.intersection | ( | self, | |
| ConstBox2i64 | b ) |
computes intersection between this and other box
| bool mrmeshpy.ConstBox2i64.intersects | ( | self, | |
| ConstBox2i64 | b ) |
checks whether this box intersects or touches given box
| ConstVector2i64 mrmeshpy.ConstBox2i64.max | ( | self | ) |
Reimplemented in mrmeshpy.Box2i64, and mrmeshpy.Box2i64.
| ConstVector2i64 mrmeshpy.ConstBox2i64.min | ( | self | ) |
Reimplemented in mrmeshpy.Box2i64, and mrmeshpy.Box2i64.
| Vector2i64 mrmeshpy.ConstBox2i64.size | ( | self | ) |
computes size of the box in all dimensions
| bool mrmeshpy.ConstBox2i64.valid | ( | self | ) |
true if the box contains at least one point
| int mrmeshpy.ConstBox2i64.volume | ( | self | ) |
computes the volume of this box
|
staticprotected |
|
staticprotected |
|
static |