| 51 | } |
| 52 | |
| 53 | Expected<void> gridToRawFloat( const FloatGrid& grid, const Vector3i& dims, std::ostream& out, ProgressCallback callback /*= {} */ ) |
| 54 | { |
| 55 | MR_TIMER; |
| 56 | auto vdbVolume = floatGridToVdbVolume( grid ); |
| 57 | vdbVolume.dims = dims; |
| 58 | return vdbVolumeToSimpleVolume( vdbVolume, {}, subprogress( callback, 0.0f, 0.2f ) ).and_then( |
| 59 | [&out, sp = subprogress( callback, 0.2f, 1.0f )] ( auto&& sv ) |
| 60 | { |
| 61 | return toRawFloat( sv, out, sp ); |
| 62 | } |
| 63 | ); |
| 64 | } |
| 65 | |
| 66 | namespace |
| 67 | { |
no test coverage detected