Crates.io | dl-openvdb-query |
lib.rs | dl-openvdb-query |
version | 0.1.3 |
source | src |
created_at | 2020-07-30 19:47:25.040438 |
updated_at | 2023-04-13 19:27:58.398232 |
description | Safe Rust wrapper for 3Delight’s OpenVDB metadata query API. |
homepage | https://www.3delight.com/ |
repository | https://github.com/virtualritz/dl-openvdb-query |
max_upload_size | |
id | 271435 |
size | 16,285 |
Safe wrapper for lib3Delight’s OpenVDB metadata query API.
This crate needs 3Delight at runtime.
If you build the crate with the feature link_lib3delight
you also need
this installed at compile time.
[build-dependencies.dl-openvdb-query]
version = "0.1.0"
features = ["link_lib3delight"]
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"]
);