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

Public Member Functions

 __init__ (self, *args, **kwargs)
ConstAffineXf3f basisXf (self)
ConstAffineXf3f basisXfInv (self)
ConstBox3f box (self)
Vector3f center (self)
bool contains (self, ConstVector3f pt)
Vector3f corner (self, ConstVector3b index)

Detailed Description

Generated from:  MR::DenseBox

Structure to hold and work with dense box
\\details Scalar operations that are not provided in this struct can be called via `box()`
For example `box().size()`, `box().diagonal()` or `box().volume()`
Non const operations are not allowed for dense box because it can spoil density

Constructor & Destructor Documentation

◆ __init__()

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

1. __init__(self: meshlib.mrmeshpy.ConstDenseBox, points: meshlib.mrmeshpy.Const_std_vector_Vector3_float, xf: meshlib.mrmeshpy.ConstAffineXf3f = None) -> None

Include given points into this dense box

2. __init__(self: meshlib.mrmeshpy.ConstDenseBox, points: meshlib.mrmeshpy.Const_std_vector_Vector3_float, weights: meshlib.mrmeshpy.Const_std_vector_float, xf: meshlib.mrmeshpy.ConstAffineXf3f = None) -> None

Include given weighed points into this dense box

3. __init__(self: meshlib.mrmeshpy.ConstDenseBox, meshPart: meshlib.mrmeshpy.ConstMeshPart, xf: meshlib.mrmeshpy.ConstAffineXf3f = None) -> None

Include mesh part into this dense box

4. __init__(self: meshlib.mrmeshpy.ConstDenseBox, points: meshlib.mrmeshpy.ConstPointCloud, xf: meshlib.mrmeshpy.ConstAffineXf3f = None) -> None

Include point into this dense box

5. __init__(self: meshlib.mrmeshpy.ConstDenseBox, line: meshlib.mrmeshpy.ConstPolyline3, xf: meshlib.mrmeshpy.ConstAffineXf3f = None) -> None

Include line into this dense box

6. __init__(self: meshlib.mrmeshpy.ConstDenseBox, arg0: meshlib.mrmeshpy.ConstDenseBox) -> None

Implicit copy constructor.

7. __init__(self: meshlib.mrmeshpy.ConstDenseBox, : meshlib.mrmeshpy.ConstDenseBox) -> None

Member Function Documentation

◆ basisXf()

ConstAffineXf3f mrmeshpy.ConstDenseBox.basisXf ( self)
transform box space to world space

◆ basisXfInv()

ConstAffineXf3f mrmeshpy.ConstDenseBox.basisXfInv ( self)
transform world space to box space

◆ box()

ConstBox3f mrmeshpy.ConstDenseBox.box ( self)
return box in its space

◆ center()

Vector3f mrmeshpy.ConstDenseBox.center ( self)
returns center of dense box

◆ contains()

bool mrmeshpy.ConstDenseBox.contains ( self,
ConstVector3f pt )
returns true if dense box contains given point

◆ corner()

Vector3f mrmeshpy.ConstDenseBox.corner ( self,
ConstVector3b index )
returns corner of dense box, each index value means: false - min, true - max
example: {false, false, flase} - min point, {true, true, true} - max point

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