MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.Box_unsigned_short Class Reference
+ Inheritance diagram for mrmeshpy.Box_unsigned_short:

Public Member Functions

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

Static Public Member Functions

None __init__ (*args, **kwargs)
 
None __init__ (*args, **kwargs)
 
Box_unsigned_short fromMinAndSize (int min, int size)
 
bool getMinBoxCorner (int n)
 

Static Public Attributes

typing elements = 1
 

Protected Member Functions

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

Detailed Description

Generated from:  MR::Box<unsigned short>
Aliases:  MinMax_VoxelsVolume_std_vector_unsigned_short_ValueType

Box given by its min- and max- corners

Constructor & Destructor Documentation

◆ __init__() [1/5]

None mrmeshpy.Box_unsigned_short.__init__ ( * args,
** kwargs )
static
skip initialization of min/max

Reimplemented in mrmeshpy.SimpleVolumeMinMaxU16, and mrmeshpy.SimpleVolumeMinMaxU16.

◆ __init__() [2/5]

None mrmeshpy.Box_unsigned_short.__init__ ( * args,
** kwargs )
static

◆ __init__() [3/5]

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

Reimplemented in mrmeshpy.SimpleVolumeMinMaxU16, and mrmeshpy.SimpleVolumeMinMaxU16.

◆ __init__() [4/5]

None mrmeshpy.Box_unsigned_short.__init__ ( self,
int min,
int max )

◆ __init__() [5/5]

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

Reimplemented in mrmeshpy.SimpleVolumeMinMaxU16, and mrmeshpy.SimpleVolumeMinMaxU16.

Member Function Documentation

◆ __eq__()

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

◆ __ne__()

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

◆ __repr__()

str mrmeshpy.Box_unsigned_short.__repr__ ( self)

Reimplemented in mrmeshpy.SimpleVolumeMinMaxU16.

◆ _Subscript() [1/2]

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

◆ _Subscript() [2/2]

int mrmeshpy.Box_unsigned_short._Subscript ( self,
int e )
protected

◆ center()

int mrmeshpy.Box_unsigned_short.center ( self)
computes center of the box

◆ contains()

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

◆ corner()

int mrmeshpy.Box_unsigned_short.corner ( self,
bool c )
returns the corner of this box as specified by given bool-vector:
1 element in (c) means take min's coordinate,
0 element in (c) means take max's coordinate

◆ diagonal()

int mrmeshpy.Box_unsigned_short.diagonal ( self)
computes length from min to max

◆ expanded()

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

◆ fromMinAndSize()

Box_unsigned_short mrmeshpy.Box_unsigned_short.fromMinAndSize ( int min,
int size )
static

◆ getBoxClosestPointTo()

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

◆ getDistanceSq() [1/2]

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

◆ getDistanceSq() [2/2]

int mrmeshpy.Box_unsigned_short.getDistanceSq ( self,
int pt )
returns squared distance between this box and given point;
returns zero if the point is inside or on the boundary of the box

◆ getMinBoxCorner()

bool mrmeshpy.Box_unsigned_short.getMinBoxCorner ( int 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

◆ include() [1/2]

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

◆ include() [2/2]

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

◆ insignificantlyExpanded()

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

◆ intersect()

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

◆ intersection()

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

◆ intersects()

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

◆ size()

int mrmeshpy.Box_unsigned_short.size ( self)
computes size of the box in all dimensions

◆ valid()

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

◆ volume()

int mrmeshpy.Box_unsigned_short.volume ( self)
computes the volume of this box

Member Data Documentation

◆ elements

typing mrmeshpy.Box_unsigned_short.elements = 1
static

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