Skip to content

MinMax3D

Canonical path: NemAll_Python_Geometry.MinMax3D

Representation class for 3D MinMax box.

Center property

Center: Point3D

Get box center point

Max property writable

Max: Point3D

Get maximum point

Min property writable

Min: Point3D

Get minimum point

SizeX property

SizeX: float

Get the size of the box in the X direction

SizeY property

SizeY: float

Get the size of the box in the Y direction

SizeZ property

SizeZ: float

Get the size of the box in the Y direction

Deflate overloaded

Deflate(size: float)

Deflate in x,y axis concurrently

Parameters:

  • size (float) –

    Deflate in x, y and z axis concurrently

Deflate(x: float, y: float, z: float)

Deflate minmax box

Parameters:

  • x (float) –

    Deflate in X axis

  • y (float) –

    Deflate in Y axis

  • z (float) –

    Deflate in Z axis

Get

Get() -> tuple[Point3D, Point3D]

Get minimum and maximum point

Returns:

GetCenter

GetCenter() -> Point3D

Get box center point

Returns:

GetMax

GetMax() -> Point3D

Get maximum point

Returns:

GetMin

GetMin() -> Point3D

Get minimum point

Returns:

GetSizeX

GetSizeX() -> float

Get the size of the box in the X direction

Returns:

  • float

    delta X value

GetSizeY

GetSizeY() -> float

Get the size of the box in the Y direction

Returns:

  • float

    delta Y value

GetSizeZ

GetSizeZ() -> float

Get the size of the box in the Y direction

Returns:

  • float

    delta Y value

HasSize

HasSize(size: float = 0.0) -> bool

Check if min-max box has some size greater than 'size'

Parameters:

  • size (float, default: 0.0 ) –

    Size for check

Returns:

  • bool

    yes/no

Inflate overloaded

Inflate(x: float, y: float, z: float)

Inflate minmax box

Parameters:

  • x (float) –

    Inflate in X axis

  • y (float) –

    Inflate in Y axis

  • z (float) –

    Inflate in Z axis

Inflate(size: float)

Inflate in x,y axis concurrently

Parameters:

  • size (float) –

    Inflate in x, y and z axis concurrently

IsContaining overloaded

IsContaining(box: MinMax3D) -> bool

Is box inside this box

Parameters:

  • box (MinMax3D) –

    Potentially contained box

Returns:

  • bool

    true, if is inside, otherwise false

IsContaining(point: Point3D) -> bool

Is point inside this box

Parameters:

  • point (Point3D) –

    Potentially contained point

Returns:

  • bool

    true, if is inside, otherwise false

IsValid

IsValid() -> bool

Test if box is valid

Returns:

  • bool

    true, if box valid, otherwise false

Overlaps

Overlaps(box: MinMax3D) -> bool

Does box overlap this box

Parameters:

Returns:

  • bool

    true, if boxes overlap, otherwise false

Reset

Reset()

Set min point to [DBL_MAX,DBL_MAX,DBL_MAX] and max point to [-DBL_MAX,-DBL_MAX,-DBL_MAX]

Set

Set(min: Point3D, max: Point3D)

Set minimum and maximum point

Parameters:

SetMax

SetMax(max: Point3D)

Set maximum point

Parameters:

SetMin

SetMin(min: Point3D)

Set minimum point

Parameters:

__add__

__add__(minmax: MinMax3D) -> MinMax3D

Expand MinMax3D box.

Expands the MinMax3D box by the box given in parameter minmax

Parameters:

  • minmax (MinMax3D) –

    MinMax3D to be added

Returns:

__eq__

__eq__(min_max: MinMax3D) -> bool

Comparison of min max values.

Be careful, this method work without tolerance!

Parameters:

  • min_max (MinMax3D) –

    min max to be compared.

Returns:

  • bool

    True when min max values are equal, otherwise false.

__iadd__ overloaded

__iadd__(minmax: MinMax3D) -> MinMax3D

Expand MinMax3D box.

Expands the MinMax3D box by the box given in parameter minmax

Parameters:

  • minmax (MinMax3D) –

    MinMax3D to be added

Returns:

__iadd__(point: Point3D) -> MinMax3D

Expand MinMax3D box.

Expands the MinMax3D box by the Point3D given in parameter point

Parameters:

  • point (Point3D) –

    Point3D to be added

Returns:

__init__ overloaded

__init__()

Initialize

__init__(min: Point3D, max: Point3D)

Set constructor

Initialize MinMax box with given MIN and MAX points.

Parameters:

__init__(point: Point3D)

Set constructor

Initialize MinMax box with given point.

Parameters:

__init__(minmax: MinMax3D)

Copy constructor.

Parameters:

  • minmax (MinMax3D) –

    MinMax3D to be copied

__repr__

__repr__() -> str

Convert to string

Placeholder