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