MeshLib Python Docs
Loading...
Searching...
No Matches
Inheritance diagram for mrmeshpy.ConstBox1f:

Public Member Functions

bool __eq__ (self, ConstBox1f a)
float __getitem__ (self, int e)
 __init__ (self, *args, **kwargs)
bool __ne__ (self, ConstBox1f a)
str __repr__ (self)
typing.Any __rlshift__ (self, typing.Any box)
float center (self)
bool contains (self, float pt)
bool contains (self, ConstBox1f otherbox)
float corner (self, bool c)
float diagonal (self)
Box1f expanded (self, float expansion)
float getBoxClosestPointTo (self, float pt)
float getDistanceSq (self, ConstBox1f b)
float getDistanceSq (self, float pt)
float getProjection (self, float pt)
Box1f insignificantlyExpanded (self)
Box1f intersection (self, ConstBox1f b)
bool intersects (self, ConstBox1f b)
float size (self)
bool valid (self)
float volume (self)
float max (self)
float min (self)

Static Public Member Functions

Box1f 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 = 4
typing _offsetof_min = 0

Detailed Description

Generated from:  MR::Box1f
Aliases:  MinMaxf

Box given by its min- and max- corners

Constructor & Destructor Documentation

◆ __init__()

mrmeshpy.ConstBox1f.__init__ ( self,
* args,
** kwargs )
__init__(*args, **kwargs)
Overloaded function.

1. __init__(self: meshlib.mrmeshpy.ConstBox1f) -> None

create invalid box by default

2. __init__(self: meshlib.mrmeshpy.ConstBox1f, min: float, max: float) -> None

3. __init__(self: meshlib.mrmeshpy.ConstBox1f, : meshlib.mrmeshpy.ConstNoInit) -> None

4. __init__(self: meshlib.mrmeshpy.ConstBox1f, arg0: meshlib.mrmeshpy.Box1f) -> None

Implicit copy constructor.

5. __init__(self: meshlib.mrmeshpy.ConstBox1f, : meshlib.mrmeshpy.Box1f) -> None

Member Function Documentation

◆ __eq__()

bool mrmeshpy.ConstBox1f.__eq__ ( self,
ConstBox1f a )

◆ __getitem__()

float mrmeshpy.ConstBox1f.__getitem__ ( self,
int e )
min/max access by 0/1 index

◆ __ne__()

bool mrmeshpy.ConstBox1f.__ne__ ( self,
ConstBox1f a )

◆ __repr__()

str mrmeshpy.ConstBox1f.__repr__ ( self)

◆ __rlshift__()

typing.Any mrmeshpy.ConstBox1f.__rlshift__ ( self,
typing.Any box )

◆ center()

float mrmeshpy.ConstBox1f.center ( self)
computes center of the box

◆ contains() [1/2]

bool mrmeshpy.ConstBox1f.contains ( self,
ConstBox1f otherbox )
checks whether given box is fully inside (the surfaces may touch) of this box

◆ contains() [2/2]

bool mrmeshpy.ConstBox1f.contains ( self,
float pt )
checks whether given point is inside (including the surface) of this box

◆ corner()

float mrmeshpy.ConstBox1f.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

◆ diagonal()

float mrmeshpy.ConstBox1f.diagonal ( self)
computes length from min to max

◆ expanded()

Box1f mrmeshpy.ConstBox1f.expanded ( self,
float expansion )
decreases min and increased max on given value

◆ fromMinAndSize()

Box1f mrmeshpy.ConstBox1f.fromMinAndSize ( float min,
float size )
static

◆ getBoxClosestPointTo()

float mrmeshpy.ConstBox1f.getBoxClosestPointTo ( self,
float pt )
returns closest point in the box to given point

◆ getDistanceSq() [1/2]

float mrmeshpy.ConstBox1f.getDistanceSq ( self,
ConstBox1f b )
returns squared distance between this box and given one;
returns zero if the boxes touch or intersect

◆ getDistanceSq() [2/2]

float mrmeshpy.ConstBox1f.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

◆ getMaxBoxCorner()

bool mrmeshpy.ConstBox1f.getMaxBoxCorner ( float n)
static
considering all planes with given normal and arbitrary shift: dot(n,x) = d
finds the box's corner for which d is maximal

◆ getMinBoxCorner()

bool mrmeshpy.ConstBox1f.getMinBoxCorner ( float n)
static
considering all planes with given normal and arbitrary shift: dot(n,x) = d
finds the box's corner for which d is minimal

◆ getProjection()

float mrmeshpy.ConstBox1f.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

◆ insignificantlyExpanded()

Box1f mrmeshpy.ConstBox1f.insignificantlyExpanded ( self)
decreases min and increases max to their closest representable value

◆ intersection()

Box1f mrmeshpy.ConstBox1f.intersection ( self,
ConstBox1f b )
computes intersection between this and other box

◆ intersects()

bool mrmeshpy.ConstBox1f.intersects ( self,
ConstBox1f b )
checks whether this box intersects or touches given box

◆ max()

float mrmeshpy.ConstBox1f.max ( self)

◆ min()

float mrmeshpy.ConstBox1f.min ( self)

◆ size()

float mrmeshpy.ConstBox1f.size ( self)
computes size of the box in all dimensions

◆ valid()

bool mrmeshpy.ConstBox1f.valid ( self)
true if the box contains at least one point

◆ volume()

float mrmeshpy.ConstBox1f.volume ( self)
computes the volume of this box

Member Data Documentation

◆ _offsetof_max

typing mrmeshpy.ConstBox1f._offsetof_max = 4
staticprotected

◆ _offsetof_min

typing mrmeshpy.ConstBox1f._offsetof_min = 0
staticprotected

◆ elements

typing mrmeshpy.ConstBox1f.elements = 1
static

The documentation for this class was generated from the following file: