MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.Box3d Class Reference

Public Member Functions

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

Static Public Member Functions

Box3d fromMinAndSize (Vector3d min, Vector3d size)
 

Static Public Attributes

typing elements = 3
 

Protected Member Functions

Vector3d _Subscript (self, int e)
 
Vector3d _Subscript (self, int e)
 

Static Protected Member Functions

 _pybind11_conduit_v1_ (*args, **kwargs)
 

Detailed Description

Generated from:  MR::Box3d

Box given by its min- and max- corners

Constructor & Destructor Documentation

◆ __init__() [1/4]

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

◆ __init__() [2/4]

None mrmeshpy.Box3d.__init__ ( self,
Vector3d min,
Vector3d max )

◆ __init__() [3/4]

None mrmeshpy.Box3d.__init__ ( self,
Box3d a )

◆ __init__() [4/4]

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

Member Function Documentation

◆ __eq__()

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

◆ __ne__()

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

◆ __repr__()

str mrmeshpy.Box3d.__repr__ ( self)

◆ _pybind11_conduit_v1_()

mrmeshpy.Box3d._pybind11_conduit_v1_ ( * args,
** kwargs )
staticprotected

◆ _Subscript() [1/2]

Vector3d mrmeshpy.Box3d._Subscript ( self,
int e )
protected
min/max access by 0/1 index

◆ _Subscript() [2/2]

Vector3d mrmeshpy.Box3d._Subscript ( self,
int e )
protected

◆ center()

Vector3d mrmeshpy.Box3d.center ( self)
computes center of the box

◆ contains()

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

◆ diagonal()

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

◆ expanded()

Box3d mrmeshpy.Box3d.expanded ( self,
Vector3d expansion )
decreases min and increased max on given value

◆ fromMinAndSize()

Box3d mrmeshpy.Box3d.fromMinAndSize ( Vector3d min,
Vector3d size )
static

◆ getBoxClosestPointTo()

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

◆ getDistanceSq() [1/2]

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

◆ getDistanceSq() [2/2]

float mrmeshpy.Box3d.getDistanceSq ( self,
Vector3d 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 mrmeshpy.Box3d.include ( self,
Box3d b )
minimally increases the box to include another box

◆ include() [2/2]

None mrmeshpy.Box3d.include ( self,
Vector3d pt )
minimally increases the box to include given point

◆ insignificantlyExpanded()

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

◆ intersect()

Box3d mrmeshpy.Box3d.intersect ( self,
Box3d b )

◆ intersection()

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

◆ intersects()

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

◆ size()

Vector3d mrmeshpy.Box3d.size ( self)
computes size of the box in all dimensions

◆ valid()

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

◆ volume()

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

Member Data Documentation

◆ elements

typing mrmeshpy.Box3d.elements = 3
static

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