Find the bounding box and other related properties of a DAGMC h5m file
Project description
Features
Finds the bounding box of a DAGMC geometry file.
The bounding box is a pair of coordinates that define the upper right and lower left corner of the geometry.
This which is particularly useful when assigning a regular mesh tally over the entire DAGMC geometry.
Installation
Using Pip
pip install dagmc_bounding_box
Using Conda
conda install -c fusion-energy -c conda-forge dagmc_bounding_box
Usage
Find the bounding box
from dagmc_bounding_box import DagmcBoundingBox
my_corners = DagmcBoundingBox("dagmc.h5m").corners()
print(my_corners)
>>> ((-100, -100, -100), (100, 100, 100))
Extend the bounding box
from dagmc_bounding_box import DagmcBoundingBox
my_corners = DagmcBoundingBox("dagmc.h5m").corners(extend=(10, 5, 2)
print(my_corners)
>>> ((-110, -105, -102), (110, 105, 102))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dagmc_bounding_box-0.2.1.tar.gz.
File metadata
- Download URL: dagmc_bounding_box-0.2.1.tar.gz
- Upload date:
- Size: 13.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0b8779246a5f8247b580905e9f8c902019b28184d167ac05bfea3008b12aa90
|
|
| MD5 |
57ce560842888485340d6261cd46f1cf
|
|
| BLAKE2b-256 |
50769b58140edab973fcd114b4fe1d0f41d840afceb2ffd2b936a93f1ebc5d34
|
File details
Details for the file dagmc_bounding_box-0.2.1-py3-none-any.whl.
File metadata
- Download URL: dagmc_bounding_box-0.2.1-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
859ad69363a6fea080c3ca40d950c9adf309a127a847eb407a7c4dda8cdd2122
|
|
| MD5 |
1937404060a6752b91edaa0f0ae493ba
|
|
| BLAKE2b-256 |
6a1bfbbd006f4f5b84dc8754a9538dc230835d71d3eea237cfbe038df279d7c2
|