Find the bounding box and other related properties of a DAGMC h5m file
Project description
Finds the bounding box of a DAGMC geometry file.
This which is particularly useful when assigning a regular mesh tally over the entire DAGMC geometry.
Installation
pip install 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
Close
Hashes for dagmc_bounding_box-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cab68149ca9d8c10346f252a9629b14d12e64505c0e1aebefc4607b16cfdd360 |
|
MD5 | 7f12d8c494458d5f18d70030a75baf38 |
|
BLAKE2b-256 | b5890a136437924b16dc3b7e3bab13a97094af1dc15221ad65a0a7cb8c388808 |