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

Public Member Functions

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

Static Public Member Functions

Box_unsigned_short fromMinAndSize (int min, int size)
bool getMaxBoxCorner (int n)
bool getMinBoxCorner (int n)

Static Public Attributes

typing elements = 1

Static Protected Attributes

typing _offsetof_max = 2
typing _offsetof_min = 0

Detailed Description

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

Box given by its min- and max- corners

Constructor & Destructor Documentation

◆ __init__()

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

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

create invalid box by default

2. __init__(self: meshlib.mrmeshpy.ConstBox_unsigned_short, min: int, max: int) -> None

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

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

Implicit copy constructor.

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

Member Function Documentation

◆ __eq__()

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

◆ __getitem__()

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

◆ __ne__()

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

◆ __repr__()

str mrmeshpy.ConstBox_unsigned_short.__repr__ ( self)

◆ __rlshift__()

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

◆ center()

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

◆ contains() [1/2]

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

◆ contains() [2/2]

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

◆ corner()

int mrmeshpy.ConstBox_unsigned_short.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()

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

◆ expanded()

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

◆ fromMinAndSize()

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

◆ getBoxClosestPointTo()

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

◆ getDistanceSq() [1/2]

int mrmeshpy.ConstBox_unsigned_short.getDistanceSq ( self,
ConstBox_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.ConstBox_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

◆ getMaxBoxCorner()

bool mrmeshpy.ConstBox_unsigned_short.getMaxBoxCorner ( 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 maximal

◆ getMinBoxCorner()

bool mrmeshpy.ConstBox_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

◆ getProjection()

int mrmeshpy.ConstBox_unsigned_short.getProjection ( self,
int pt )
returns the closest point on the box to the given point
for points outside the box this is equivalent to getBoxClosestPointTo

◆ insignificantlyExpanded()

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

◆ intersection()

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

◆ intersects()

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

◆ max()

int mrmeshpy.ConstBox_unsigned_short.max ( self)

◆ min()

int mrmeshpy.ConstBox_unsigned_short.min ( self)

◆ size()

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

◆ valid()

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

◆ volume()

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

Member Data Documentation

◆ _offsetof_max

typing mrmeshpy.ConstBox_unsigned_short._offsetof_max = 2
staticprotected

◆ _offsetof_min

typing mrmeshpy.ConstBox_unsigned_short._offsetof_min = 0
staticprotected

◆ elements

typing mrmeshpy.ConstBox_unsigned_short.elements = 1
static

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