https://github.com/virtualritz/dl-openvdb-query
Safe Rust wrapper for lib3delight’s OpenVDB metadata query API.
https://github.com/virtualritz/dl-openvdb-query
Last synced: 11 months ago
JSON representation
Safe Rust wrapper for lib3delight’s OpenVDB metadata query API.
- Host: GitHub
- URL: https://github.com/virtualritz/dl-openvdb-query
- Owner: virtualritz
- Created: 2020-07-30T18:14:23.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-04-13T19:35:31.000Z (about 3 years ago)
- Last Synced: 2025-02-28T05:55:09.300Z (over 1 year ago)
- Language: Rust
- Homepage:
- Size: 76.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# `dl-openvdb-query`
Safe wrapper for `lib3delight`’s [OpenVDB](https://www.openvdb.org/)
metadata query API.
## Dependencies
This crate needs [3Delight](https://www.3delight.com/) at runtime.
If you build the crate with the feature `link_lib3delight` you also need
this installed at compile time.
## Features
```toml
[dependencies]
dl-openvdb-query = { version = "0.2", features = ["link_lib3delight"] }
```
## Use
```rust
let open_vdb_query =
dl_openvdb_query::DlOpenVdbQuery::new(
"tests/sphere_points.vdb",
)
.unwrap();
let min = -0.9416000247001648;
let max = 1.0593000277876854;
assert_eq!(
open_vdb_query.bounding_box().unwrap(),
[min, min, min, max, max, max]
);
assert_eq!(
open_vdb_query.grid_names().unwrap(),
vec!["points"]
);
```