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