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