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