Public Member Functions | |
bool | __eq__ (self, Box3i64 a) |
Vector3i64 | __getitem__ (self, int e) |
Vector3i64 | __getitem__ (self, int e) |
None | __init__ (self) |
None | __init__ (self, Vector3i64 min, Vector3i64 max) |
bool | __ne__ (self, Box3i64 a) |
str | __repr__ (self) |
None | __setitem__ (self, int arg0, Vector3i64 arg1) |
Vector3i64 | center (self) |
bool | contains (self, Vector3i64 pt) |
bool | contains (self, Box3i64 otherbox) |
Vector3i64 | corner (self, Vector3b c) |
int | diagonal (self) |
Box3i64 | expanded (self, Vector3i64 expansion) |
Vector3i64 | getBoxClosestPointTo (self, Vector3i64 pt) |
int | getDistanceSq (self, Box3i64 b) |
int | getDistanceSq (self, Vector3i64 pt) |
Vector3i64 | getProjection (self, Vector3i64 pt) |
None | include (self, Vector3i64 pt) |
None | include (self, Box3i64 b) |
Box3i64 | insignificantlyExpanded (self) |
Box3i64 | intersect (self, Box3i64 b) |
Box3i64 | intersection (self, Box3i64 b) |
bool | intersects (self, Box3i64 b) |
Vector3i64 | size (self) |
bool | valid (self) |
int | volume (self) |
Static Public Member Functions | |
None | __init__ (*args, **kwargs) |
None | __init__ (*args, **kwargs) |
Box3i64 | fromMinAndSize (Vector3i64 min, Vector3i64 size) |
Vector3b | getMaxBoxCorner (Vector3i64 n) |
Vector3b | getMinBoxCorner (Vector3i64 n) |
Box3i64 | operator (*args, **kwargs) |
Box3i64 | operator (*args, **kwargs) |
Static Public Attributes | |
typing | elements = 3 |
Static Protected Attributes | |
typing | _offsetof_max = 24 |
typing | _offsetof_min = 0 |
Generated from: MR::Box3i64 Box given by its min- and max- corners
|
static |
|
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
None mrmeshpy.Box3i64.__init__ | ( | self | ) |
create invalid box by default
None mrmeshpy.Box3i64.__init__ | ( | self, | |
Vector3i64 | min, | ||
Vector3i64 | max ) |
bool mrmeshpy.Box3i64.__eq__ | ( | self, | |
Box3i64 | a ) |
Vector3i64 mrmeshpy.Box3i64.__getitem__ | ( | self, | |
int | e ) |
min/max access by 0/1 index
Vector3i64 mrmeshpy.Box3i64.__getitem__ | ( | self, | |
int | e ) |
bool mrmeshpy.Box3i64.__ne__ | ( | self, | |
Box3i64 | a ) |
str mrmeshpy.Box3i64.__repr__ | ( | self | ) |
None mrmeshpy.Box3i64.__setitem__ | ( | self, | |
int | arg0, | ||
Vector3i64 | arg1 ) |
Vector3i64 mrmeshpy.Box3i64.center | ( | self | ) |
computes center of the box
bool mrmeshpy.Box3i64.contains | ( | self, | |
Box3i64 | otherbox ) |
checks whether given box is fully inside (the surfaces may touch) of this box
bool mrmeshpy.Box3i64.contains | ( | self, | |
Vector3i64 | pt ) |
checks whether given point is inside (including the surface) of this box
Vector3i64 mrmeshpy.Box3i64.corner | ( | self, | |
Vector3b | 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.Box3i64.diagonal | ( | self | ) |
computes length from min to max
Box3i64 mrmeshpy.Box3i64.expanded | ( | self, | |
Vector3i64 | expansion ) |
decreases min and increased max on given value
|
static |
Vector3i64 mrmeshpy.Box3i64.getBoxClosestPointTo | ( | self, | |
Vector3i64 | pt ) |
returns closest point in the box to given point
int mrmeshpy.Box3i64.getDistanceSq | ( | self, | |
Box3i64 | b ) |
returns squared distance between this box and given one; returns zero if the boxes touch or intersect
int mrmeshpy.Box3i64.getDistanceSq | ( | self, | |
Vector3i64 | 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
Vector3i64 mrmeshpy.Box3i64.getProjection | ( | self, | |
Vector3i64 | pt ) |
returns the closest point on the box to the given point for points outside the box this is equivalent to getBoxClosestPointTo
None mrmeshpy.Box3i64.include | ( | self, | |
Box3i64 | b ) |
minimally increases the box to include another box
None mrmeshpy.Box3i64.include | ( | self, | |
Vector3i64 | pt ) |
minimally increases the box to include given point
Box3i64 mrmeshpy.Box3i64.insignificantlyExpanded | ( | self | ) |
decreases min and increases max to their closest representable value
computes intersection between this and other box
bool mrmeshpy.Box3i64.intersects | ( | self, | |
Box3i64 | b ) |
checks whether this box intersects or touches given box
|
static |
|
static |
Vector3i64 mrmeshpy.Box3i64.size | ( | self | ) |
computes size of the box in all dimensions
bool mrmeshpy.Box3i64.valid | ( | self | ) |
true if the box contains at least one point
int mrmeshpy.Box3i64.volume | ( | self | ) |
computes the volume of this box
|
staticprotected |
|
staticprotected |
|
static |