|
Blender
V2.93
|
#include "render/mesh.h"#include "util/util_algorithm.h"#include "util/util_array.h"#include "util/util_map.h"#include "util/util_path.h"#include "util/util_set.h"#include "util/util_transform.h"#include "util/util_types.h"#include "util/util_vector.h"Go to the source code of this file.
Classes | |
| class | EdgeMap |
Functions | |
| void | BKE_image_user_frame_calc (void *ima, void *iuser, int cfra) |
| void | BKE_image_user_file_path (void *iuser, void *ima, char *path) |
| 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 &, BL::Object &object, BL::Depsgraph &, bool, Mesh::SubdivisionType subdivision_type) |
| static void | free_object_to_mesh (BL::BlendData &, BL::Object &object, 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, bool rgb_curve, float *min_x, float *max_x) |
| static void | curvemapping_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 (BL::Object &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::ImageUser &iuser, BL::Image &ima, int cfra, bool load_tiled) |
| 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_liquid_domain_find (BL::Object &b_ob) |
| static BL::FluidDomainSettings | object_fluid_gas_domain_find (BL::Object &b_ob) |
| static Mesh::SubdivisionType | object_subdivision_type (BL::Object &b_ob, bool preview, bool experimental) |
| static uint | object_ray_visibility (BL::Object &b_ob) |
Variables | |
| CCL_NAMESPACE_BEGIN typedef BL::ShaderNodeAttribute::attribute_type_enum | BlenderAttributeType |
| float* BKE_image_get_float_pixels_for_frame | ( | void * | image, |
| int | frame, | ||
| int | tile | ||
| ) |
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 | ( | void * | iuser, |
| void * | ima, | ||
| char * | path | ||
| ) |
Referenced by image_user_file_path().
| void BKE_image_user_frame_calc | ( | void * | ima, |
| void * | iuser, | ||
| int | cfra | ||
| ) |
Referenced by image_user_file_path(), and image_user_frame_number().
|
inlinestatic |
Definition at line 222 of file blender_util.h.
References scene.
|
inlinestatic |
Definition at line 217 of file blender_util.h.
References scene.
|
inlinestatic |
Definition at line 438 of file 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 130 of file blender_shader.cpp.
References instancer_attr_prefix(), and object_attr_prefix().
|
inlinestatic |
Definition at line 120 of file blender_util.h.
References make_float3, array< T, alignment >::resize(), and size().
Referenced by add_node().
|
inlinestatic |
Definition at line 137 of file blender_util.h.
References curve, max, and min.
Referenced by curvemapping_minmax().
|
inlinestatic |
Definition at line 169 of file blender_util.h.
References curvemapping_minmax(), data, float(), make_float3, size(), and t.
Referenced by add_node().
|
inlinestatic |
Definition at line 143 of file blender_util.h.
References curvemap_minmax_curve().
Referenced by add_node(), and curvemapping_color_to_array().
|
inlinestatic |
Definition at line 158 of file blender_util.h.
References curve, data, float(), size(), and t.
Referenced by blender_camera_from_view(), and BlenderSync::sync_camera().
|
inlinestatic |
Definition at line 110 of file blender_util.h.
References data, PointerRNA::data, mesh, and ptr.
|
inlinestatic |
Definition at line 349 of file blender_util.h.
References ptr, and RNA_boolean_get().
Referenced by blender_device_info(), BlenderObjectCulling::BlenderObjectCulling(), CCL_NAMESPACE_BEGIN::debug_flags_sync_from_scene(), denoise_func(), BlenderSync::get_session_params(), BlenderSync::get_session_pause(), BlenderObjectCulling::init_object(), object_motion_steps(), object_ray_visibility(), object_use_deform_motion(), BlenderSync::sync_integrator(), BlenderSync::sync_render_passes(), and BlenderSync::sync_view_layer().
|
inlinestatic |
Definition at line 386 of file blender_util.h.
References ptr, and RNA_enum_get().
Referenced by add_node(), blender_camera_from_object(), blender_device_info(), CCL_NAMESPACE_BEGIN::debug_flags_sync_from_scene(), get_displacement_method(), BlenderSync::get_scene_params(), BlenderSync::get_session_params(), BlenderViewportParameters::get_viewport_display_render_pass(), get_volume_interpolation(), get_volume_sampling(), BlenderSync::sync_camera(), BlenderSync::sync_integrator(), and BlenderSync::sync_view_layer().
|
inlinestatic |
Definition at line 399 of file blender_util.h.
References NULL, ptr, RNA_property_enum_get(), RNA_property_enum_identifier(), and RNA_struct_find_property().
Referenced by add_node().
|
inlinestatic |
Definition at line 359 of file blender_util.h.
References ptr, and RNA_float_get().
Referenced by BlenderObjectCulling::BlenderObjectCulling(), denoise_func(), BlenderSync::get_session_params(), set_default_value(), and BlenderSync::sync_integrator().
Definition at line 290 of file 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 295 of file blender_util.h.
References make_float3.
Referenced by add_node(), attr_create_pointiness(), create_mesh(), get_tex_mapping(), mesh_texture_space(), set_default_value(), sync_mesh_cached_velocities(), and sync_mesh_fluid_motion().
Definition at line 300 of file blender_util.h.
References make_float3.
Definition at line 305 of file blender_util.h.
References make_float3.
|
inlinestatic |
Definition at line 325 of file blender_util.h.
References ptr, RNA_float_get_array(), and float3::x.
|
inlinestatic |
Definition at line 310 of file blender_util.h.
References make_float4.
Referenced by attr_create_sculpt_vertex_color(), attr_create_vertex_color(), and set_default_value().
|
inlinestatic |
Definition at line 337 of file blender_util.h.
References ptr, and RNA_float_get_array().
|
inlinestatic |
Definition at line 369 of file blender_util.h.
References ptr, and RNA_int_get().
Referenced by CCL_NAMESPACE_BEGIN::debug_flags_sync_from_scene(), denoise_func(), BlenderSync::get_scene_params(), BlenderSync::get_session_params(), object_motion_steps(), set_default_value(), and BlenderSync::sync_integrator().
|
inlinestatic |
Definition at line 315 of file blender_util.h.
References make_int3.
Referenced by attr_create_uv_map(), attr_create_vertex_color(), create_mesh(), BlenderSmokeLoader::load_metadata(), and BlenderSmokeLoader::load_pixels().
|
inlinestatic |
Definition at line 320 of file blender_util.h.
References make_int4.
|
inlinestatic |
Definition at line 420 of file blender_util.h.
References MEM_freeN, ptr, RNA_string_get_alloc(), and str.
Referenced by blender_device_info(), and set_default_value().
|
inlinestatic |
Definition at line 456 of file blender_util.h.
References PointerRNA::data, NULL, and ptr.
Referenced by add_node().
Definition at line 277 of file 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 265 of file blender_util.h.
References BKE_image_get_float_pixels_for_frame().
Referenced by BlenderImageLoader::load_pixels().
|
inlinestatic |
Definition at line 260 of file blender_util.h.
References BKE_image_get_pixels_for_frame().
Referenced by BlenderImageLoader::load_pixels().
|
inlinestatic |
Definition at line 237 of file blender_util.h.
References BKE_image_user_file_path(), BKE_image_user_frame_calc(), and string_replace().
Referenced by add_node().
|
inlinestatic |
Definition at line 254 of file blender_util.h.
References BKE_image_user_frame_calc().
Referenced by add_node().
Definition at line 473 of file blender_util.h.
References get_float3(), make_float3, and size().
Referenced by BlenderSmokeLoader::BlenderSmokeLoader(), create_mesh(), and MikkUserData::MikkUserData().
|
inlinestatic |
Definition at line 555 of file blender_util.h.
References PointerRNA_NULL, and RNA_FluidModifier.
Referenced by determine_geom_type(), and sync_smoke_volume().
|
inlinestatic |
Definition at line 539 of file blender_util.h.
References PointerRNA_NULL, and RNA_FluidModifier.
Referenced by sync_mesh_fluid_motion().
|
inlinestatic |
Definition at line 489 of file 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 597 of file blender_util.h.
References get_boolean(), PATH_RAY_CAMERA, PATH_RAY_DIFFUSE, PATH_RAY_GLOSSY, PATH_RAY_SHADOW, PATH_RAY_TRANSMIT, PATH_RAY_VOLUME_SCATTER, and RNA_pointer_get().
|
inlinestatic |
Definition at line 571 of file blender_util.h.
References PointerRNA::data, enabled, mod(), 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 49 of file blender_util.h.
References data, depsgraph, mesh, PointerRNA_NULL, Mesh::SUBDIVISION_NONE, and type.
|
inlinestatic |
Definition at line 522 of file blender_util.h.
References get_boolean(), and RNA_pointer_get().
| void python_thread_state_restore | ( | void ** | python_thread_state | ) |
Definition at line 143 of file blender_python.cpp.
References NULL.
Referenced by bake_func(), render_func(), reset_func(), and sync_func().
| void python_thread_state_save | ( | void ** | python_thread_state | ) |
Definition at line 138 of file blender_python.cpp.
Referenced by bake_func(), render_func(), reset_func(), and sync_func().
|
inlinestatic |
Definition at line 270 of file blender_util.h.
Referenced by add_cryptomatte_layer().
|
inlinestatic |
Definition at line 227 of file blender_util.h.
Referenced by blender_camera_init(), and BlenderSession::reset_session().
|
inlinestatic |
Definition at line 232 of file blender_util.h.
Referenced by blender_camera_init(), and BlenderSession::reset_session().
|
inlinestatic |
Definition at line 354 of file blender_util.h.
References ptr, and RNA_boolean_set().
|
inlinestatic |
Definition at line 415 of file blender_util.h.
References NULL, ptr, and RNA_enum_set_identifier().
|
inlinestatic |
Definition at line 410 of file blender_util.h.
References ptr, and RNA_enum_set().
|
inlinestatic |
Definition at line 364 of file blender_util.h.
References ptr, and RNA_float_set().
|
inlinestatic |
Definition at line 332 of file blender_util.h.
References ptr, RNA_float_set_array(), and float3::x.
|
inlinestatic |
Definition at line 344 of file blender_util.h.
References ptr, and RNA_float_set_array().
|
inlinestatic |
Definition at line 374 of file blender_util.h.
References ptr, and RNA_int_set().
|
inlinestatic |
Definition at line 431 of file blender_util.h.
References ptr, and RNA_string_set().
| CCL_NAMESPACE_BEGIN typedef BL::ShaderNodeAttribute::attribute_type_enum BlenderAttributeType |
Definition at line 43 of file blender_util.h.