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

Public Member Functions

bool __eq__ (self, Box3i64 a)
 
Vector3i64 __getitem__ (self, int e)
 
Vector3i64 __getitem__ (self, int e)
 
None __init__ (self)
 
None __init__ (self, Vector3i64 min, Vector3i64 max)
 
bool __ne__ (self, Box3i64 a)
 
str __repr__ (self)
 
None __setitem__ (self, int arg0, Vector3i64 arg1)
 
Vector3i64 center (self)
 
bool contains (self, Vector3i64 pt)
 
bool contains (self, Box3i64 otherbox)
 
Vector3i64 corner (self, Vector3b c)
 
int diagonal (self)
 
Box3i64 expanded (self, Vector3i64 expansion)
 
Vector3i64 getBoxClosestPointTo (self, Vector3i64 pt)
 
int getDistanceSq (self, Box3i64 b)
 
int getDistanceSq (self, Vector3i64 pt)
 
Vector3i64 getProjection (self, Vector3i64 pt)
 
None include (self, Vector3i64 pt)
 
None include (self, Box3i64 b)
 
Box3i64 insignificantlyExpanded (self)
 
Box3i64 intersect (self, Box3i64 b)
 
Box3i64 intersection (self, Box3i64 b)
 
bool intersects (self, Box3i64 b)
 
Vector3i64 size (self)
 
bool valid (self)
 
int volume (self)
 

Static Public Member Functions

None __init__ (*args, **kwargs)
 
None __init__ (*args, **kwargs)
 
Box3i64 fromMinAndSize (Vector3i64 min, Vector3i64 size)
 
Vector3b getMaxBoxCorner (Vector3i64 n)
 
Vector3b getMinBoxCorner (Vector3i64 n)
 
Box3i64 operator (*args, **kwargs)
 
Box3i64 operator (*args, **kwargs)
 

Static Public Attributes

typing elements = 3
 

Static Protected Attributes

typing _offsetof_max = 24
 
typing _offsetof_min = 0
 

Detailed Description

Generated from:  MR::Box3i64

Box given by its min- and max- corners

Constructor & Destructor Documentation

◆ __init__() [1/4]

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

◆ __init__() [2/4]

None mrmeshpy.Box3i64.__init__ ( * args,
** kwargs )
static
If the compiler supports `requires`, use that instead of `std::enable_if` here.
Not (only) because it looks cooler, but because of a bug in our binding generator that makes it choke on it: https://github.com/MeshInspector/mrbind/issues/19

◆ __init__() [3/4]

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

◆ __init__() [4/4]

None mrmeshpy.Box3i64.__init__ ( self,
Vector3i64 min,
Vector3i64 max )

Member Function Documentation

◆ __eq__()

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

◆ __getitem__() [1/2]

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

◆ __getitem__() [2/2]

Vector3i64 mrmeshpy.Box3i64.__getitem__ ( self,
int e )

◆ __ne__()

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

◆ __repr__()

str mrmeshpy.Box3i64.__repr__ ( self)

◆ __setitem__()

None mrmeshpy.Box3i64.__setitem__ ( self,
int arg0,
Vector3i64 arg1 )

◆ center()

Vector3i64 mrmeshpy.Box3i64.center ( self)
computes center of the box

◆ contains() [1/2]

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

◆ contains() [2/2]

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

◆ corner()

Vector3i64 mrmeshpy.Box3i64.corner ( self,
Vector3b 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.Box3i64.diagonal ( self)
computes length from min to max

◆ expanded()

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

◆ fromMinAndSize()

Box3i64 mrmeshpy.Box3i64.fromMinAndSize ( Vector3i64 min,
Vector3i64 size )
static

◆ getBoxClosestPointTo()

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

◆ getDistanceSq() [1/2]

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

◆ getDistanceSq() [2/2]

int mrmeshpy.Box3i64.getDistanceSq ( self,
Vector3i64 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()

Vector3b mrmeshpy.Box3i64.getMaxBoxCorner ( Vector3i64 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()

Vector3b mrmeshpy.Box3i64.getMinBoxCorner ( Vector3i64 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()

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

◆ include() [1/2]

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

◆ include() [2/2]

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

◆ insignificantlyExpanded()

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

◆ intersect()

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

◆ intersection()

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

◆ intersects()

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

◆ operator() [1/2]

Box3i64 mrmeshpy.Box3i64.operator ( * args,
** kwargs )
static

◆ operator() [2/2]

Box3i64 mrmeshpy.Box3i64.operator ( * args,
** kwargs )
static

◆ size()

Vector3i64 mrmeshpy.Box3i64.size ( self)
computes size of the box in all dimensions

◆ valid()

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

◆ volume()

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

Member Data Documentation

◆ _offsetof_max

typing mrmeshpy.Box3i64._offsetof_max = 24
staticprotected

◆ _offsetof_min

typing mrmeshpy.Box3i64._offsetof_min = 0
staticprotected

◆ elements

typing mrmeshpy.Box3i64.elements = 3
static

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