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

Public Member Functions

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

Static Public Member Functions

Box1i64 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 = 8
typing _offsetof_min = 0

Detailed Description

Generated from:  MR::Box1i64

Box given by its min- and max- corners

Constructor & Destructor Documentation

◆ __init__()

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

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

create invalid box by default

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

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

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

Implicit copy constructor.

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

Member Function Documentation

◆ __eq__()

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

◆ __getitem__()

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

◆ __ne__()

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

◆ __repr__()

str mrmeshpy.ConstBox1i64.__repr__ ( self)

◆ __rlshift__()

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

◆ center()

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

◆ contains() [1/2]

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

◆ contains() [2/2]

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

◆ corner()

int mrmeshpy.ConstBox1i64.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.ConstBox1i64.diagonal ( self)
computes length from min to max

◆ expanded()

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

◆ fromMinAndSize()

Box1i64 mrmeshpy.ConstBox1i64.fromMinAndSize ( int min,
int size )
static

◆ getBoxClosestPointTo()

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

◆ getDistanceSq() [1/2]

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

◆ getDistanceSq() [2/2]

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

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

◆ intersection()

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

◆ intersects()

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

◆ max()

int mrmeshpy.ConstBox1i64.max ( self)

◆ min()

int mrmeshpy.ConstBox1i64.min ( self)

◆ size()

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

◆ valid()

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

◆ volume()

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

Member Data Documentation

◆ _offsetof_max

typing mrmeshpy.ConstBox1i64._offsetof_max = 8
staticprotected

◆ _offsetof_min

typing mrmeshpy.ConstBox1i64._offsetof_min = 0
staticprotected

◆ elements

typing mrmeshpy.ConstBox1i64.elements = 1
static

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