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

Public Member Functions

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

Static Public Member Functions

Box3d fromMinAndSize (ConstVector3d min, ConstVector3d size)
Vector3b getMaxBoxCorner (ConstVector3d n)
Vector3b getMinBoxCorner (ConstVector3d n)

Static Public Attributes

typing elements = 3

Static Protected Attributes

typing _offsetof_max = 24
typing _offsetof_min = 0

Detailed Description

Generated from:  MR::Box3d

Box given by its min- and max- corners

Constructor & Destructor Documentation

◆ __init__()

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

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

create invalid box by default

2. __init__(self: meshlib.mrmeshpy.ConstBox3d, min: meshlib.mrmeshpy.ConstVector3d, max: meshlib.mrmeshpy.ConstVector3d) -> None

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

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

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

Implicit copy constructor.

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

Member Function Documentation

◆ __eq__()

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

◆ __getitem__()

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

◆ __ne__()

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

◆ __repr__()

str mrmeshpy.ConstBox3d.__repr__ ( self)

◆ __rlshift__()

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

◆ center()

Vector3d mrmeshpy.ConstBox3d.center ( self)
computes center of the box

◆ contains() [1/2]

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

◆ contains() [2/2]

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

◆ corner()

Vector3d mrmeshpy.ConstBox3d.corner ( self,
ConstVector3b 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()

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

◆ expanded()

Box3d mrmeshpy.ConstBox3d.expanded ( self,
ConstVector3d expansion )
decreases min and increased max on given value

◆ fromMinAndSize()

Box3d mrmeshpy.ConstBox3d.fromMinAndSize ( ConstVector3d min,
ConstVector3d size )
static

◆ getBoxClosestPointTo()

Vector3d mrmeshpy.ConstBox3d.getBoxClosestPointTo ( self,
ConstVector3d pt )
returns closest point in the box to given point

◆ getDistanceSq() [1/2]

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

◆ getDistanceSq() [2/2]

float mrmeshpy.ConstBox3d.getDistanceSq ( self,
ConstVector3d 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.ConstBox3d.getMaxBoxCorner ( ConstVector3d 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.ConstBox3d.getMinBoxCorner ( ConstVector3d 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()

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

◆ insignificantlyExpanded()

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

◆ intersection()

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

◆ intersects()

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

◆ max()

ConstVector3d mrmeshpy.ConstBox3d.max ( self)

Reimplemented in mrmeshpy.Box3d, and mrmeshpy.Box3d.

◆ min()

ConstVector3d mrmeshpy.ConstBox3d.min ( self)

Reimplemented in mrmeshpy.Box3d, and mrmeshpy.Box3d.

◆ size()

Vector3d mrmeshpy.ConstBox3d.size ( self)
computes size of the box in all dimensions

◆ valid()

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

◆ volume()

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

Member Data Documentation

◆ _offsetof_max

typing mrmeshpy.ConstBox3d._offsetof_max = 24
staticprotected

◆ _offsetof_min

typing mrmeshpy.ConstBox3d._offsetof_min = 0
staticprotected

◆ elements

typing mrmeshpy.ConstBox3d.elements = 3
static

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