Skip to main content

Prime Mesh Python client library 2025 R2 SP01

BoundingBox

Last update: 16.10.2025

class ansys.meshing.prime.BoundingBox(model=None, xmin=None, ymin=None, zmin=None, xmax=None, ymax=None, zmax=None, json_data=None, **kwargs)

Provides information about the definition of a bounding box.

  • Parameters:

    model: Model : Model to create a BoundingBox object with default parameters.

    xmin: float, optional : Minimal X coordinate of the bounding box.

    ymin: float, optional : Minimal Y coordinate of the bounding box.

    zmin: float, optional : Minimal Z coordinate of the bounding box.

    xmax: float, optional : Maximal X coordinate of the bounding box.

    ymax: float, optional : Maximal Y coordinate of the bounding box.

    zmax: float, optional : Maximal Z coordinate of the bounding box.

    json_data: dict, optional : JSON dictionary to create a BoundingBox object with provided parameters.

Examples

>>> bounding_box = prime.BoundingBox(model = model)

Methods

Name Description
BoundingBox.print_default() Print the default values of BoundingBox object.
BoundingBox.set_default([xmin, ymin, zmin, ...]) Set the default values of the BoundingBox object.

Attributes

Name Description
BoundingBox.xmax Maximal X coordinate of the bounding box.
BoundingBox.xmin Minimal X coordinate of the bounding box.
BoundingBox.ymax Maximal Y coordinate of the bounding box.
BoundingBox.ymin Minimal Y coordinate of the bounding box.
BoundingBox.zmax Maximal Z coordinate of the bounding box.
BoundingBox.zmin Minimal Z coordinate of the bounding box.

Connect with Ansys