Blender
V3.3
|
Go to the source code of this file.
Typedefs | |
typedef struct VolumeGrid | VolumeGrid |
typedef enum VolumeGridType | VolumeGridType |
Enumerations | |
enum | { BKE_VOLUME_BATCH_DIRTY_ALL = 0 } |
enum | VolumeGridType { VOLUME_GRID_UNKNOWN = 0 , VOLUME_GRID_BOOLEAN , VOLUME_GRID_FLOAT , VOLUME_GRID_DOUBLE , VOLUME_GRID_INT , VOLUME_GRID_INT64 , VOLUME_GRID_MASK , VOLUME_GRID_VECTOR_FLOAT , VOLUME_GRID_VECTOR_DOUBLE , VOLUME_GRID_VECTOR_INT , VOLUME_GRID_POINTS } |
Variables | |
void(* | BKE_volume_batch_cache_dirty_tag_cb )(struct Volume *volume, int mode) |
void(* | BKE_volume_batch_cache_free_cb )(struct Volume *volume) |
Volume data-block.
Definition in file BKE_volume.h.
typedef struct VolumeGrid VolumeGrid |
Definition at line 57 of file BKE_volume.h.
typedef enum VolumeGridType VolumeGridType |
anonymous enum |
Enumerator | |
---|---|
BKE_VOLUME_BATCH_DIRTY_ALL |
Definition at line 49 of file BKE_volume.h.
enum VolumeGridType |
Definition at line 90 of file BKE_volume.h.
Definition at line 690 of file volume.cc.
References BKE_id_new(), and ID_VO.
Referenced by BKE_object_obdata_add_from_type(), and blender::io::usd::USDVolumeReader::create_object().
Definition at line 1215 of file volume.cc.
References Volume::batch_cache, and BKE_volume_batch_cache_dirty_tag_cb.
Referenced by BKE_object_data_batch_cache_dirty_tag().
Definition at line 1222 of file volume.cc.
References Volume::batch_cache, and BKE_volume_batch_cache_free_cb.
Referenced by volume_free_data().
Definition at line 1007 of file volume.cc.
References Object_Runtime::bb, BKE_boundbox_init_from_minmax(), BKE_volume_min_max(), BLI_assert, BOUNDBOX_DIRTY, Object::data, BoundBox::flag, INIT_MINMAX, max, min, OB_VOLUME, Object::runtime, and Object::type.
Referenced by BKE_object_boundbox_get(), BKE_object_minmax(), and drw_call_calc_orco().
Definition at line 1515 of file volume.cc.
References BKE_id_copy_ex(), Volume::id, LIB_ID_COPY_CD_REFERENCE, LIB_ID_COPY_LOCALIZE, and result.
Referenced by VolumeComponent::copy(), VolumeComponent::ensure_owns_direct_data(), and VolumeComponent::get_for_write().
void BKE_volume_data_update | ( | struct Depsgraph * | depsgraph, |
struct Scene * | scene, | ||
struct Object * | object | ||
) |
Definition at line 1159 of file volume.cc.
References BKE_object_eval_assign_data(), BKE_object_free_derived_caches(), BKE_volume_new_for_eval(), Object::data, depsgraph, Volume::id, ReadOnly, GeometrySet::replace_volume(), scene, take_volume_ownership_from_geometry_set(), and volume_evaluate_modifiers().
Referenced by BKE_object_handle_data_update(), and object_force_modifier_update_for_bind().
Definition at line 1120 of file volume.cc.
References BKE_volume_unload(), DEG_get_original_id(), DEG_is_active(), depsgraph, Volume_Runtime::frame, Volume::id, Volume::runtime, volume_sequence_frame(), and volume_update_simplify_level().
Referenced by blender::deg::DepsgraphNodeBuilder::build_object_data_geometry_datablock().
const VolumeGrid* BKE_volume_grid_active_get_for_read | ( | const struct Volume * | volume | ) |
struct VolumeGrid* BKE_volume_grid_add | ( | struct Volume * | volume, |
const char * | name, | ||
VolumeGridType | type | ||
) |
Definition at line 1542 of file volume.cc.
References BKE_volume_grid_find_for_read(), BLI_assert, Volume_Runtime::grids, Volume::runtime, type, UNUSED_VARS, and VOLUME_GRID_UNKNOWN.
int BKE_volume_grid_channels | ( | const struct VolumeGrid * | grid | ) |
Referenced by BKE_volume_grid_dense_floats(), and volume_grid_cache_get().
Openvdb crashes when the determinant of the transform matrix becomes too small.
Definition at line 1593 of file volume.cc.
References blender::math::abs(), determinant(), and UNUSED_VARS.
Referenced by blender::nodes::transform_volume().
const VolumeGrid* BKE_volume_grid_find_for_read | ( | const struct Volume * | volume, |
const char * | name | ||
) |
Referenced by drw_volume_object_grids_init(), and modifyMesh().
const VolumeGrid* BKE_volume_grid_get_for_read | ( | const struct Volume * | volume, |
int | grid_index | ||
) |
VolumeGrid* BKE_volume_grid_get_for_write | ( | struct Volume * | volume, |
int | grid_index | ||
) |
Definition at line 1277 of file volume.cc.
References Volume_Runtime::grids, Volume::runtime, and UNUSED_VARS.
Referenced by displace_volume(), and blender::nodes::transform_volume().
bool BKE_volume_grid_is_loaded | ( | const struct VolumeGrid * | grid | ) |
Referenced by volume_grid_cache_get().
bool BKE_volume_grid_load | ( | const struct Volume * | volume, |
const struct VolumeGrid * | grid | ||
) |
const char* BKE_volume_grid_name | ( | const struct VolumeGrid * | grid | ) |
void BKE_volume_grid_remove | ( | struct Volume * | volume, |
struct VolumeGrid * | grid | ||
) |
Definition at line 1578 of file volume.cc.
References Volume_Runtime::grids, Volume::runtime, and UNUSED_VARS.
void BKE_volume_grid_transform_matrix | ( | const struct VolumeGrid * | grid, |
float | mat[4][4] | ||
) |
Transformation from index space to object space.
Referenced by blender::nodes::transform_volume().
void BKE_volume_grid_transform_matrix_set | ( | struct VolumeGrid * | volume_grid, |
const float | mat[4][4] | ||
) |
Definition at line 1480 of file volume.cc.
References col, and UNUSED_VARS.
Referenced by blender::nodes::transform_volume().
VolumeGridType BKE_volume_grid_type | ( | const struct VolumeGrid * | grid | ) |
void BKE_volume_grid_unload | ( | const struct Volume * | volume, |
const struct VolumeGrid * | grid | ||
) |
Referenced by volume_grid_cache_get().
void BKE_volume_grids_backup_restore | ( | struct Volume * | volume, |
struct VolumeGridVector * | grids, | ||
const char * | filepath | ||
) |
Definition at line 1183 of file volume.cc.
References BLI_assert, Volume::filepath, Volume_Runtime::grids, Volume::id, LIB_TAG_COPIED_ON_WRITE, Volume::runtime, STREQ, ID::tag, and UNUSED_VARS.
Referenced by blender::deg::VolumeBackup::restore_to_volume().
const char* BKE_volume_grids_error_msg | ( | const struct Volume * | volume | ) |
Referenced by volume_import_exec().
const char* BKE_volume_grids_frame_filepath | ( | const struct Volume * | volume | ) |
Definition at line 679 of file volume.cc.
References Volume_Runtime::grids, Volume::runtime, and UNUSED_VARS.
Referenced by BKE_volume_new_for_eval(), volume_blend_read_lib(), and volume_init_data().
Referenced by volume_import_exec().
Referenced by volume_import_exec().
Referenced by mesh_to_volume().
int BKE_volume_num_grids | ( | const struct Volume * | volume | ) |
bool BKE_volume_save | ( | const struct Volume * | volume, |
const struct Main * | bmain, | ||
struct ReportList * | reports, | ||
const char * | filepath | ||
) |
Definition at line 796 of file volume.cc.
References BKE_volume_grid_find_for_read(), BLI_strncpy(), Volume::runtime, Volume::velocity_grid, Volume_Runtime::velocity_x_grid, Volume_Runtime::velocity_y_grid, and Volume_Runtime::velocity_z_grid.
Referenced by BKE_volume_load().
int BKE_volume_simplify_level | ( | const struct Depsgraph * | depsgraph | ) |
Definition at line 930 of file volume.cc.
References CLOG_INFO, Volume_Runtime::grids, Volume::id, LOG, ID::name, Volume::runtime, and UNUSED_VARS.
Referenced by BKE_packedfile_unpack_volume(), BKE_volume_eval_geometry(), blender::io::usd::USDVolumeWriter::do_write(), and volume_import_exec().
|
extern |
Definition at line 1212 of file volume.cc.
Referenced by BKE_volume_batch_cache_dirty_tag(), and DRW_engines_register().
Definition at line 1213 of file volume.cc.
Referenced by BKE_volume_batch_cache_free(), and DRW_engines_register().