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

Public Member Functions

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

Static Public Member Functions

Box3f fromMinAndSize (Vector3f min, Vector3f size)
 

Static Public Attributes

typing elements = 3
 

Protected Member Functions

Vector3f _Subscript (self, int e)
 
Vector3f _Subscript (self, int e)
 

Static Protected Member Functions

 _pybind11_conduit_v1_ (*args, **kwargs)
 

Detailed Description

Generated from:  MR::Box3f
Aliases:  AABBTreeTraits_FaceTag_Box3f.BoxT, AABBTreeTraits_UndirectedEdgeTag_Box3f.BoxT, AABBTreeNode_ObjTreeTraits.BoxT, AABBTreeBase_ObjTreeTraits.BoxT, AABBTreeNode_AABBTreeTraits_UndirectedEdgeTag_Box3f.BoxT, AABBTreeBase_AABBTreeTraits_FaceTag_Box3f.BoxT, ObjTreeTraits.BoxT, AABBTreeBase_AABBTreeTraits_UndirectedEdgeTag_Box3f.BoxT, AABBTreeNode_AABBTreeTraits_FaceTag_Box3f.BoxT

Box given by its min- and max- corners

Constructor & Destructor Documentation

◆ __init__() [1/4]

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

◆ __init__() [2/4]

None mrmeshpy.Box3f.__init__ ( self,
Vector3f min,
Vector3f max )

◆ __init__() [3/4]

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

◆ __init__() [4/4]

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

Member Function Documentation

◆ __eq__()

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

◆ __ne__()

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

◆ __repr__()

str mrmeshpy.Box3f.__repr__ ( self)

◆ _pybind11_conduit_v1_()

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

◆ _Subscript() [1/2]

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

◆ _Subscript() [2/2]

Vector3f mrmeshpy.Box3f._Subscript ( self,
int e )
protected

◆ center()

Vector3f mrmeshpy.Box3f.center ( self)
computes center of the box

◆ contains()

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

◆ diagonal()

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

◆ expanded()

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

◆ fromMinAndSize()

Box3f mrmeshpy.Box3f.fromMinAndSize ( Vector3f min,
Vector3f size )
static

◆ getBoxClosestPointTo()

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

◆ getDistanceSq() [1/2]

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

◆ getDistanceSq() [2/2]

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

◆ include() [2/2]

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

◆ insignificantlyExpanded()

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

◆ intersect()

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

◆ intersection()

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

◆ intersects()

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

◆ size()

Vector3f mrmeshpy.Box3f.size ( self)
computes size of the box in all dimensions

◆ valid()

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

◆ volume()

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

Member Data Documentation

◆ elements

typing mrmeshpy.Box3f.elements = 3
static

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