AcademySoftwareFoundation / openvdb

OpenVDB - Sparse volume data structure and tools
http://www.openvdb.org/
Mozilla Public License 2.0
2.62k stars 647 forks source link

Initial support for HalfGrid and ComputeType #1787

Open ghurstunither opened 5 months ago

ghurstunither commented 5 months ago

Initial support for HalfGrid and ComputeType in OpenVDB, where the latter enables intermediate float computations for HalfGrid to increase accuracy and speed.

Note, I decided not to define openvdb::is_floating_point and friends. Instead I opted to use std::is_floating_point<ComputeType>()::value instead.


Still to come in this PR

*Uunit tests for half and to verify no unit tests have broken.

apradhana commented 2 weeks ago

@ghurstunither. I'm wondering if you have ever compiled this PR with EXPLICIT_TEMPLATE_INSTANTIATION = ON.