Blender
V3.3
|
#include "scene/mesh.h"
#include "scene/scene.h"
#include "util/algorithm.h"
#include "util/array.h"
#include "util/map.h"
#include "util/path.h"
#include "util/set.h"
#include "util/transform.h"
#include "util/types.h"
#include "util/vector.h"
Go to the source code of this file.
Classes | |
struct | BObjectInfo |
class | EdgeMap |
Typedefs | |
typedef BL::ShaderNodeAttribute::attribute_type_enum | BlenderAttributeType |
Functions | |
void | BKE_image_user_frame_calc (void *ima, void *iuser, int cfra) |
void | BKE_image_user_file_path_ex (void *bmain, void *iuser, void *ima, char *path, bool resolve_udim, bool resolve_multiview) |
unsigned char * | BKE_image_get_pixels_for_frame (void *image, int frame, int tile) |
float * | BKE_image_get_float_pixels_for_frame (void *image, int frame, int tile) |
BlenderAttributeType | blender_attribute_name_split_type (ustring name, string *r_real_name) |
void | python_thread_state_save (void **python_thread_state) |
void | python_thread_state_restore (void **python_thread_state) |
static BL::Mesh | object_to_mesh (BL::BlendData &, BObjectInfo &b_ob_info, BL::Depsgraph &, bool, Mesh::SubdivisionType subdivision_type) |
static void | free_object_to_mesh (BL::BlendData &, BObjectInfo &b_ob_info, BL::Mesh &mesh) |
static void | colorramp_to_array (BL::ColorRamp &ramp, array< float3 > &ramp_color, array< float > &ramp_alpha, int size) |
static void | curvemap_minmax_curve (BL::CurveMap &curve, float *min_x, float *max_x) |
static void | curvemapping_minmax (BL::CurveMapping &cumap, int num_curves, float *min_x, float *max_x) |
static void | curvemapping_to_array (BL::CurveMapping &cumap, array< float > &data, int size) |
static void | curvemapping_float_to_array (BL::CurveMapping &cumap, array< float > &data, int size) |
static void | curvemapping_color_to_array (BL::CurveMapping &cumap, array< float3 > &data, int size, bool rgb_curve) |
static bool | BKE_object_is_modified (BL::Object &self, BL::Scene &scene, bool preview) |
static bool | BKE_object_is_deform_modified (BObjectInfo &self, BL::Scene &scene, bool preview) |
static int | render_resolution_x (BL::RenderSettings &b_render) |
static int | render_resolution_y (BL::RenderSettings &b_render) |
static string | image_user_file_path (BL::BlendData &data, BL::ImageUser &iuser, BL::Image &ima, int cfra) |
static int | image_user_frame_number (BL::ImageUser &iuser, BL::Image &ima, int cfra) |
static unsigned char * | image_get_pixels_for_frame (BL::Image &image, int frame, int tile) |
static float * | image_get_float_pixels_for_frame (BL::Image &image, int frame, int tile) |
static void | render_add_metadata (BL::RenderResult &b_rr, string name, string value) |
static Transform | get_transform (const BL::Array< float, 16 > &array) |
static float2 | get_float2 (const BL::Array< float, 2 > &array) |
static float3 | get_float3 (const BL::Array< float, 2 > &array) |
static float3 | get_float3 (const BL::Array< float, 3 > &array) |
static float3 | get_float3 (const BL::Array< float, 4 > &array) |
static float4 | get_float4 (const BL::Array< float, 4 > &array) |
static int3 | get_int3 (const BL::Array< int, 3 > &array) |
static int4 | get_int4 (const BL::Array< int, 4 > &array) |
static float3 | get_float3 (PointerRNA &ptr, const char *name) |
static void | set_float3 (PointerRNA &ptr, const char *name, float3 value) |
static float4 | get_float4 (PointerRNA &ptr, const char *name) |
static void | set_float4 (PointerRNA &ptr, const char *name, float4 value) |
static bool | get_boolean (PointerRNA &ptr, const char *name) |
static void | set_boolean (PointerRNA &ptr, const char *name, bool value) |
static float | get_float (PointerRNA &ptr, const char *name) |
static void | set_float (PointerRNA &ptr, const char *name, float value) |
static int | get_int (PointerRNA &ptr, const char *name) |
static void | set_int (PointerRNA &ptr, const char *name, int value) |
static int | get_enum (PointerRNA &ptr, const char *name, int num_values=-1, int default_value=-1) |
static string | get_enum_identifier (PointerRNA &ptr, const char *name) |
static void | set_enum (PointerRNA &ptr, const char *name, int value) |
static void | set_enum (PointerRNA &ptr, const char *name, const string &identifier) |
static string | get_string (PointerRNA &ptr, const char *name) |
static void | set_string (PointerRNA &ptr, const char *name, const string &value) |
static string | blender_absolute_path (BL::BlendData &b_data, BL::ID &b_id, const string &path) |
static string | get_text_datablock_content (const PointerRNA &ptr) |
static void | mesh_texture_space (BL::Mesh &b_mesh, float3 &loc, float3 &size) |
static uint | object_motion_steps (BL::Object &b_parent, BL::Object &b_ob, const int max_steps=INT_MAX) |
static bool | object_use_deform_motion (BL::Object &b_parent, BL::Object &b_ob) |
static BL::FluidDomainSettings | object_fluid_gas_domain_find (BL::Object &b_ob) |
static BL::MeshSequenceCacheModifier | object_mesh_cache_find (BL::Object &b_ob, bool *has_subdivision_modifier) |
static Mesh::SubdivisionType | object_subdivision_type (BL::Object &b_ob, bool preview, bool experimental) |
static uint | object_ray_visibility (BL::Object &b_ob) |
static bool | object_need_motion_attribute (BObjectInfo &b_ob_info, Scene *scene) |
typedef BL::ShaderNodeAttribute::attribute_type_enum BlenderAttributeType |
Definition at line 54 of file cycles/blender/util.h.
Referenced by image_get_float_pixels_for_frame().
unsigned char* BKE_image_get_pixels_for_frame | ( | void * | image, |
int | frame, | ||
int | tile | ||
) |
Referenced by image_get_pixels_for_frame().
void BKE_image_user_file_path_ex | ( | void * | bmain, |
void * | iuser, | ||
void * | ima, | ||
char * | path, | ||
bool | resolve_udim, | ||
bool | resolve_multiview | ||
) |
Referenced by image_user_file_path().
Referenced by image_user_file_path(), and image_user_frame_number().
|
inlinestatic |
Definition at line 263 of file cycles/blender/util.h.
References usdtokens::preview(), and scene.
|
inlinestatic |
Definition at line 258 of file cycles/blender/util.h.
References usdtokens::preview(), and scene.
|
inlinestatic |
Definition at line 482 of file cycles/blender/util.h.
References dirname(), path_dirname(), and path_join().
Referenced by add_node(), and set_default_value().
BlenderAttributeType blender_attribute_name_split_type | ( | ustring | name, |
string * | r_real_name | ||
) |
Definition at line 119 of file blender/shader.cpp.
References instancer_attr_prefix(), and object_attr_prefix().
|
inlinestatic |
Definition at line 139 of file cycles/blender/util.h.
References color, make_float3, array< T, alignment >::resize(), and size().
Referenced by add_node().
|
inlinestatic |
Definition at line 156 of file cycles/blender/util.h.
References curve, max, and min.
Referenced by curvemapping_minmax().
|
inlinestatic |
Definition at line 209 of file cycles/blender/util.h.
References curvemapping_minmax(), data, float(), make_float3, size(), and t.
Referenced by add_node().
|
inlinestatic |
Definition at line 187 of file cycles/blender/util.h.
References curvemapping_minmax(), data, float(), map, max, min, size(), and t.
Referenced by add_node().
|
inlinestatic |
Definition at line 162 of file cycles/blender/util.h.
References curvemap_minmax_curve(), and map.
Referenced by add_node(), curvemapping_color_to_array(), and curvemapping_float_to_array().
|
inlinestatic |
Definition at line 176 of file cycles/blender/util.h.
References curve, data, float(), size(), and t.
Referenced by blender_camera_from_view(), and BlenderSync::sync_camera().
|
inlinestatic |
Definition at line 125 of file cycles/blender/util.h.
References data, PointerRNA::data, BObjectInfo::is_real_object_data(), mesh, ptr, and BObjectInfo::real_object.
|
inlinestatic |
Definition at line 393 of file cycles/blender/util.h.
References ptr, and RNA_boolean_get().
Referenced by blender_device_info(), BlenderObjectCulling::BlenderObjectCulling(), BlenderViewportParameters::BlenderViewportParameters(), CCL_NAMESPACE_BEGIN::debug_flags_sync_from_scene(), BlenderSync::get_denoise_params(), BlenderSync::get_session_pause(), BlenderObjectCulling::init_object(), object_motion_steps(), object_need_motion_attribute(), object_use_deform_motion(), set_default_value(), BlenderSync::sync_integrator(), and BlenderSync::sync_render_passes().
|
inlinestatic |
Definition at line 430 of file cycles/blender/util.h.
References num_values, ptr, and RNA_enum_get().
Referenced by add_node(), blender_camera_from_object(), blender_device_info(), CCL_NAMESPACE_BEGIN::debug_flags_sync_from_scene(), BlenderSync::get_denoise_params(), get_displacement_method(), BlenderSync::get_scene_params(), BlenderSync::get_session_params(), get_volume_interpolation(), get_volume_sampling(), BlenderSync::sync_camera(), BlenderSync::sync_integrator(), and BlenderSync::sync_view_layer().
|
inlinestatic |
Definition at line 443 of file cycles/blender/util.h.
References NULL, ptr, RNA_property_enum_get(), RNA_property_enum_identifier(), and RNA_struct_find_property().
Referenced by add_node(), BlenderViewportParameters::BlenderViewportParameters(), and BlenderImageLoader::load_metadata().
|
inlinestatic |
Definition at line 403 of file cycles/blender/util.h.
References ptr, and RNA_float_get().
Referenced by BlenderObjectCulling::BlenderObjectCulling(), blender::bke::idprop::DictionaryEntryParser::get_float_value(), BlenderSync::get_session_params(), set_default_value(), and BlenderSync::sync_integrator().
Definition at line 334 of file cycles/blender/util.h.
References make_float2.
Referenced by attr_create_subd_uv_map(), attr_create_uv_map(), and blender_camera_from_view().
Definition at line 339 of file cycles/blender/util.h.
References make_float3.
Referenced by add_node(), attr_create_motion(), attr_create_pointiness(), create_mesh(), export_hair_curves(), export_pointcloud(), export_pointcloud_motion(), get_tex_mapping(), hair_point_as_float4(), mesh_texture_space(), and set_default_value().
Definition at line 344 of file cycles/blender/util.h.
References make_float3.
Definition at line 349 of file cycles/blender/util.h.
References make_float3.
|
inlinestatic |
Definition at line 369 of file cycles/blender/util.h.
References ptr, RNA_float_get_array(), and float3::x.
Definition at line 354 of file cycles/blender/util.h.
References make_float4.
Referenced by attr_create_generic(), and set_default_value().
|
inlinestatic |
Definition at line 381 of file cycles/blender/util.h.
References ptr, and RNA_float_get_array().
|
inlinestatic |
Definition at line 413 of file cycles/blender/util.h.
References ptr, and RNA_int_get().
Referenced by BlenderSync::get_denoise_params(), blender::bke::idprop::DictionaryEntryParser::get_int_value(), BlenderSync::get_scene_params(), BlenderSync::get_session_params(), object_motion_steps(), set_default_value(), and BlenderSync::sync_integrator().
|
inlinestatic |
Definition at line 359 of file cycles/blender/util.h.
References make_int3.
Referenced by attr_create_uv_map(), create_mesh(), BlenderSmokeLoader::load_metadata(), and BlenderSmokeLoader::load_pixels().
|
inlinestatic |
Definition at line 364 of file cycles/blender/util.h.
References make_int4.
|
inlinestatic |
Definition at line 464 of file cycles/blender/util.h.
References MEM_freeN, NULL, ptr, RNA_string_get_alloc(), and str.
Referenced by blender_device_info(), blender::bke::idprop::DictionaryEntryParser::get_name(), blender::bke::idprop::DictionaryEntryParser::get_string_value(), and set_default_value().
|
inlinestatic |
Definition at line 500 of file cycles/blender/util.h.
References PointerRNA::data, NULL, and ptr.
Referenced by add_node().
Definition at line 321 of file cycles/blender/util.h.
References projection_to_transform(), and projection_transpose().
Referenced by add_node(), blender_camera_focal_distance(), blender_camera_from_view(), create_subd_mesh(), ObtainCacheParticleData(), BlenderSync::sync_camera(), and BlenderSync::sync_view().
|
inlinestatic |
Definition at line 309 of file cycles/blender/util.h.
References BKE_image_get_float_pixels_for_frame(), image(), and tile.
Referenced by BlenderImageLoader::load_pixels().
|
inlinestatic |
Definition at line 304 of file cycles/blender/util.h.
References BKE_image_get_pixels_for_frame(), image(), and tile.
Referenced by BlenderImageLoader::load_pixels().
|
inlinestatic |
Definition at line 285 of file cycles/blender/util.h.
References BKE_image_user_file_path_ex(), BKE_image_user_frame_calc(), and data.
Referenced by add_node().
|
inlinestatic |
Definition at line 298 of file cycles/blender/util.h.
References BKE_image_user_frame_calc().
Referenced by add_node().
Definition at line 517 of file cycles/blender/util.h.
References get_float3(), make_float3, and size().
Referenced by BlenderSmokeLoader::BlenderSmokeLoader(), create_mesh(), and MikkUserData::MikkUserData().
|
inlinestatic |
Definition at line 583 of file cycles/blender/util.h.
References PointerRNA_NULL.
Referenced by determine_geom_type(), and sync_smoke_volume().
|
inlinestatic |
Definition at line 599 of file cycles/blender/util.h.
References PointerRNA_NULL.
|
inlinestatic |
Definition at line 533 of file cycles/blender/util.h.
References get_boolean(), get_int(), max, min, RNA_pointer_get(), and steps.
Referenced by blender_camera_from_object().
|
inlinestatic |
Definition at line 673 of file cycles/blender/util.h.
References get_boolean(), Scene::MOTION_BLUR, Scene::MOTION_NONE, Scene::need_motion(), BObjectInfo::real_object, RNA_pointer_get(), and scene.
Referenced by sync_smoke_volume(), and sync_volume_object().
|
inlinestatic |
Definition at line 654 of file cycles/blender/util.h.
References PATH_RAY_CAMERA, PATH_RAY_DIFFUSE, PATH_RAY_GLOSSY, PATH_RAY_SHADOW, PATH_RAY_TRANSMIT, and PATH_RAY_VOLUME_SCATTER.
|
inlinestatic |
Definition at line 628 of file cycles/blender/util.h.
References PointerRNA::data, enabled, mod(), usdtokens::preview(), RNA_boolean_get(), RNA_pointer_get(), Mesh::SUBDIVISION_CATMULL_CLARK, Mesh::SUBDIVISION_LINEAR, and Mesh::SUBDIVISION_NONE.
Referenced by BlenderSync::sync_recalc().
|
inlinestatic |
Definition at line 60 of file cycles/blender/util.h.
References depsgraph, BObjectInfo::is_real_object_data(), mesh, BObjectInfo::object_data, PointerRNA_NULL, BObjectInfo::real_object, and Mesh::SUBDIVISION_NONE.
|
inlinestatic |
Definition at line 566 of file cycles/blender/util.h.
References get_boolean(), and RNA_pointer_get().
Definition at line 93 of file python.cpp.
References NULL.
Referenced by bake_func(), render_frame_finish_func(), render_func(), reset_func(), and sync_func().
Definition at line 88 of file python.cpp.
Referenced by bake_func(), render_frame_finish_func(), render_func(), reset_func(), and sync_func().
|
inlinestatic |
Definition at line 314 of file cycles/blender/util.h.
Referenced by add_cryptomatte_layer().
|
inlinestatic |
Definition at line 275 of file cycles/blender/util.h.
Referenced by blender_camera_init(), and BlenderSession::reset_session().
|
inlinestatic |
Definition at line 280 of file cycles/blender/util.h.
Referenced by blender_camera_init(), and BlenderSession::reset_session().
|
inlinestatic |
Definition at line 398 of file cycles/blender/util.h.
References ptr, and RNA_boolean_set().
|
inlinestatic |
Definition at line 459 of file cycles/blender/util.h.
References NULL, ptr, and RNA_enum_set_identifier().
|
inlinestatic |
Definition at line 454 of file cycles/blender/util.h.
References ptr, and RNA_enum_set().
|
inlinestatic |
Definition at line 408 of file cycles/blender/util.h.
References ptr, and RNA_float_set().
|
inlinestatic |
Definition at line 376 of file cycles/blender/util.h.
References ptr, RNA_float_set_array(), and float3::x.
|
inlinestatic |
Definition at line 388 of file cycles/blender/util.h.
References ptr, and RNA_float_set_array().
|
inlinestatic |
Definition at line 418 of file cycles/blender/util.h.
References ptr, and RNA_int_set().
|
inlinestatic |
Definition at line 475 of file cycles/blender/util.h.
References ptr, and RNA_string_set().