Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_volume.h
| Show First 20 Lines • Show All 154 Lines • ▼ Show 20 Lines | |||||
| /* OpenVDB Grid Access | /* OpenVDB Grid Access | ||||
| * | * | ||||
| * Access to OpenVDB grid for C++. These will automatically load grids from | * Access to OpenVDB grid for C++. These will automatically load grids from | ||||
| * file or copy shared grids to make them writeable. */ | * file or copy shared grids to make them writeable. */ | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| # include "BLI_float3.hh" | # include "BLI_float3.hh" | ||||
| # include "BLI_float4x4.hh" | # include "BLI_float4x4.hh" | ||||
| # include "BLI_string_ref.hh" | |||||
| bool BKE_volume_min_max(const Volume *volume, blender::float3 &r_min, blender::float3 &r_max); | bool BKE_volume_min_max(const Volume *volume, blender::float3 &r_min, blender::float3 &r_max); | ||||
| # ifdef WITH_OPENVDB | # ifdef WITH_OPENVDB | ||||
| # include <openvdb/openvdb.h> | # include <openvdb/openvdb.h> | ||||
| # include <openvdb/points/PointDataGrid.h> | # include <openvdb/points/PointDataGrid.h> | ||||
| VolumeGrid *BKE_volume_grid_add_vdb(Volume &volume, | |||||
| blender::StringRef name, | |||||
| openvdb::GridBase::Ptr vdb_grid); | |||||
| bool BKE_volume_grid_bounds(openvdb::GridBase::ConstPtr grid, | bool BKE_volume_grid_bounds(openvdb::GridBase::ConstPtr grid, | ||||
| blender::float3 &r_min, | blender::float3 &r_min, | ||||
| blender::float3 &r_max); | blender::float3 &r_max); | ||||
| openvdb::GridBase::ConstPtr BKE_volume_grid_shallow_transform(openvdb::GridBase::ConstPtr grid, | openvdb::GridBase::ConstPtr BKE_volume_grid_shallow_transform(openvdb::GridBase::ConstPtr grid, | ||||
| const blender::float4x4 &transform); | const blender::float4x4 &transform); | ||||
| openvdb::GridBase::ConstPtr BKE_volume_grid_openvdb_for_metadata(const struct VolumeGrid *grid); | openvdb::GridBase::ConstPtr BKE_volume_grid_openvdb_for_metadata(const struct VolumeGrid *grid); | ||||
| ▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines | |||||