Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_volume.h
| Show First 20 Lines • Show All 208 Lines • ▼ Show 20 Lines | case VOLUME_GRID_MASK: | ||||
| return op.template operator()<openvdb::MaskGrid>(); | return op.template operator()<openvdb::MaskGrid>(); | ||||
| case VOLUME_GRID_POINTS: | case VOLUME_GRID_POINTS: | ||||
| return op.template operator()<openvdb::points::PointDataGrid>(); | return op.template operator()<openvdb::points::PointDataGrid>(); | ||||
| case VOLUME_GRID_UNKNOWN: | case VOLUME_GRID_UNKNOWN: | ||||
| break; | break; | ||||
| } | } | ||||
| /* Should never be called. */ | /* Should never be called. */ | ||||
| BLI_assert(!"should never be reached"); | BLI_assert_msg(0, "should never be reached"); | ||||
| return op.template operator()<openvdb::FloatGrid>(); | return op.template operator()<openvdb::FloatGrid>(); | ||||
| } | } | ||||
| openvdb::GridBase::Ptr BKE_volume_grid_create_with_changed_resolution( | openvdb::GridBase::Ptr BKE_volume_grid_create_with_changed_resolution( | ||||
| const VolumeGridType grid_type, | const VolumeGridType grid_type, | ||||
| const openvdb::GridBase &old_grid, | const openvdb::GridBase &old_grid, | ||||
| const float resolution_factor); | const float resolution_factor); | ||||
| # endif | # endif | ||||
| #endif | #endif | ||||