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