MeshLib Python Docs
Loading...
Searching...
No Matches
meshlib.mrmeshpy.Box1d Class Reference

Public Member Functions

bool __eq__ (self, Box1d a)
 
None __init__ (self)
 
None __init__ (self, float min, float max)
 
None __init__ (self, Box1d arg0)
 
bool __ne__ (self, Box1d a)
 
float center (self)
 
bool contains (self, float pt)
 
float diagonal (self)
 
Box1d expanded (self, float expansion)
 
float getBoxClosestPointTo (self, float pt)
 
float getDistanceSq (self, Box1d b)
 
float getDistanceSq (self, float pt)
 
None include (self, float pt)
 
None include (self, Box1d b)
 
Box1d insignificantlyExpanded (self)
 
Box1d intersect (self, Box1d b)
 
Box1d intersection (self, Box1d b)
 
bool intersects (self, Box1d b)
 
float size (self)
 
bool valid (self)
 
float volume (self)
 

Static Public Member Functions

Box1d fromMinAndSize (float min, float size)
 

Static Public Attributes

typing elements = 1
 

Protected Member Functions

float _Subscript (self, int e)
 
float _Subscript (self, int e)
 

Detailed Description

Generated from:  MR::Box1d
Aliases:  MinMax_double, MinMaxd, Box_double

Box given by its min- and max- corners

Constructor & Destructor Documentation

◆ __init__() [1/3]

None meshlib.mrmeshpy.Box1d.__init__ ( self)
create invalid box by default

◆ __init__() [2/3]

None meshlib.mrmeshpy.Box1d.__init__ ( self,
float min,
float max )

◆ __init__() [3/3]

None meshlib.mrmeshpy.Box1d.__init__ ( self,
Box1d arg0 )
Implicit copy constructor.

Member Function Documentation

◆ __eq__()

bool meshlib.mrmeshpy.Box1d.__eq__ ( self,
Box1d a )

◆ __ne__()

bool meshlib.mrmeshpy.Box1d.__ne__ ( self,
Box1d a )

◆ _Subscript() [1/2]

float meshlib.mrmeshpy.Box1d._Subscript ( self,
int e )
protected
min/max access by 0/1 index

◆ _Subscript() [2/2]

float meshlib.mrmeshpy.Box1d._Subscript ( self,
int e )
protected

◆ center()

float meshlib.mrmeshpy.Box1d.center ( self)
computes center of the box

◆ contains()

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

◆ diagonal()

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

◆ expanded()

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

◆ fromMinAndSize()

Box1d meshlib.mrmeshpy.Box1d.fromMinAndSize ( float min,
float size )
static

◆ getBoxClosestPointTo()

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

◆ getDistanceSq() [1/2]

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

◆ getDistanceSq() [2/2]

float meshlib.mrmeshpy.Box1d.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

◆ include() [1/2]

None meshlib.mrmeshpy.Box1d.include ( self,
Box1d b )
minimally increases the box to include another box

◆ include() [2/2]

None meshlib.mrmeshpy.Box1d.include ( self,
float pt )
minimally increases the box to include given point

◆ insignificantlyExpanded()

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

◆ intersect()

Box1d meshlib.mrmeshpy.Box1d.intersect ( self,
Box1d b )

◆ intersection()

Box1d meshlib.mrmeshpy.Box1d.intersection ( self,
Box1d b )
computes intersection between this and other box

◆ intersects()

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

◆ size()

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

◆ valid()

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

◆ volume()

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

Member Data Documentation

◆ elements

typing meshlib.mrmeshpy.Box1d.elements = 1
static

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