|
Blender V5.0
|
#include "RNA_access.hh"#include "RNA_blender_cpp.hh"#include "scene/mesh.h"#include "scene/scene.h"#include "util/algorithm.h"#include "util/array.h"#include "util/path.h"#include "util/set.h"#include "util/transform.h"#include "util/types.h"#include "DNA_mesh_types.h"#include "DNA_object_types.h"#include "DNA_view3d_types.h"#include "BKE_global.hh"#include "BKE_image.hh"#include "BKE_lib_id.hh"#include "BKE_mesh.h"#include "BKE_mesh_types.hh"#include "BKE_mesh_wrapper.hh"Go to the source code of this file.
Classes | |
| struct | BObjectInfo |
| class | EdgeMap |
Typedefs | |
| using | BlenderAttributeType = BL::ShaderNodeAttribute::attribute_type_enum |
Functions | |
| static CCL_NAMESPACE_BEGIN BL::ID | object_get_data (const BL::Object &b_ob, const bool use_adaptive_subdivision) |
| static BL::Mesh | object_copy_mesh_data (const BObjectInfo &b_ob_info) |
| 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 bool | mesh_use_corner_normals (const BObjectInfo &b_ob_info, BL::Mesh &mesh) |
| static BL::Mesh | object_to_mesh (BObjectInfo &b_ob_info) |
| static void | free_object_to_mesh (BObjectInfo &b_ob_info, BL::Mesh &mesh) |
| static void | colorramp_to_array (BL::ColorRamp &ramp, array< float3 > &ramp_color, array< float > &ramp_alpha, const int size) |
| static void | curvemap_minmax_curve (BL::CurveMap &curve, float *min_x, float *max_x) |
| static void | curvemapping_minmax (BL::CurveMapping &cumap, const int num_curves, float *min_x, float *max_x) |
| static void | curvemapping_to_array (BL::CurveMapping &cumap, array< float > &data, const int size) |
| static void | curvemapping_float_to_array (BL::CurveMapping &cumap, array< float > &data, const int size) |
| static void | curvemapping_color_to_array (BL::CurveMapping &cumap, array< float3 > &data, const 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, const int cfra) |
| static int | image_user_frame_number (BL::ImageUser &iuser, BL::Image &ima, const int cfra) |
| static bool | image_is_builtin (BL::Image &ima, BL::RenderEngine &engine) |
| 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, const float3 value) |
| static float4 | get_float4 (PointerRNA &ptr, const char *name) |
| static void | set_float4 (PointerRNA &ptr, const char *name, const 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, const float value) |
| static int | get_int (PointerRNA &ptr, const char *name) |
| static void | set_int (PointerRNA &ptr, const char *name, const 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, const 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 (const ::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 BL::SubsurfModifier | object_subdivision_modifier (BL::Object &b_ob, const bool preview) |
| static Mesh::SubdivisionType | object_subdivision_type (BL::Object &b_ob, const bool preview, const bool use_adaptive_subdivision) |
| static void | object_subdivision_to_mesh (BL::Object &b_ob, Mesh &mesh, const bool preview, const bool use_adaptive_subdivision) |
| static uint | object_ray_visibility (BL::Object &b_ob) |
| static bool | object_need_motion_attribute (BObjectInfo &b_ob_info, Scene *scene) |
| static bool | region_view3d_navigating_or_transforming (const BL::RegionView3D &b_rv3d) |
| using BlenderAttributeType = BL::ShaderNodeAttribute::attribute_type_enum |
Definition at line 80 of file cycles/blender/util.h.
|
inlinestatic |
Definition at line 280 of file cycles/blender/util.h.
|
inlinestatic |
Definition at line 275 of file cycles/blender/util.h.
|
inlinestatic |
Definition at line 514 of file cycles/blender/util.h.
References blender_absolute_path(), dirname(), path_dirname(), and path_join().
Referenced by add_node(), blender_absolute_path(), blender_camera_from_object(), and set_default_value().
| BlenderAttributeType blender_attribute_name_split_type | ( | ustring | name, |
| string * | r_real_name ) |
Definition at line 132 of file blender/shader.cpp.
References instancer_attr_prefix(), name, object_attr_prefix(), and view_layer_attr_prefix().
|
inlinestatic |
Definition at line 148 of file cycles/blender/util.h.
References i, make_float3(), array< T, alignment >::resize(), and size().
Referenced by add_node().
Definition at line 166 of file cycles/blender/util.h.
Referenced by curvemapping_minmax().
|
inlinestatic |
Definition at line 224 of file cycles/blender/util.h.
References curvemapping_minmax(), data, float, i, make_float3(), and size().
Referenced by add_node().
|
inlinestatic |
Definition at line 200 of file cycles/blender/util.h.
References curvemapping_minmax(), data, float, i, max, min, and size().
Referenced by add_node().
|
inlinestatic |
Definition at line 172 of file cycles/blender/util.h.
References curvemap_minmax_curve(), FLT_MAX, and i.
Referenced by add_node(), curvemapping_color_to_array(), and curvemapping_float_to_array().
|
inlinestatic |
Definition at line 186 of file cycles/blender/util.h.
References data, float, i, and size().
Referenced by blender_camera_from_view(), and BlenderSync::sync_camera().
|
inlinestatic |
Definition at line 136 of file cycles/blender/util.h.
References BKE_id_free(), BObjectInfo::is_real_object_data(), object_get_data(), BObjectInfo::real_object, and BObjectInfo::use_adaptive_subdivision.
|
inlinestatic |
Definition at line 431 of file cycles/blender/util.h.
References name, ptr, RNA_boolean_get(), and true.
Referenced by adjust_device_info_from_preferences(), blender_device_info(), BlenderViewportParameters::BlenderViewportParameters(), CCL_NAMESPACE_BEGIN::debug_flags_sync_from_scene(), BlenderSync::get_denoise_params(), BlenderSync::get_session_params(), BlenderSync::get_session_pause(), BlenderObjectCulling::init_object(), object_motion_steps(), object_need_motion_attribute(), object_use_deform_motion(), set_default_value(), and BlenderSync::sync_integrator().
|
inlinestatic |
Definition at line 468 of file cycles/blender/util.h.
References assert, name, ptr, and RNA_enum_get().
Referenced by add_node(), adjust_device_info(), adjust_device_info_from_preferences(), blender_device_info(), CCL_NAMESPACE_BEGIN::debug_flags_sync_from_scene(), BlenderSync::get_denoise_params(), get_emission_sampling(), BlenderSync::get_scene_params(), get_volume_interpolation(), get_volume_sampling(), BlenderSync::sync_camera(), BlenderSync::sync_integrator(), and BlenderSync::sync_view_layer().
|
inlinestatic |
Definition at line 481 of file cycles/blender/util.h.
References name, ptr, RNA_property_enum_get(), RNA_property_enum_identifier(), and RNA_struct_find_property().
Referenced by add_node(), and BlenderViewportParameters::BlenderViewportParameters().
|
inlinestatic |
Definition at line 441 of file cycles/blender/util.h.
References name, ptr, and RNA_float_get().
Referenced by BlenderSync::get_session_params(), set_default_value(), and BlenderSync::sync_integrator().
Definition at line 372 of file cycles/blender/util.h.
References make_float2.
Referenced by blender_camera_from_view().
Definition at line 377 of file cycles/blender/util.h.
References make_float3().
Referenced by add_node(), get_tex_mapping(), and set_default_value().
Definition at line 382 of file cycles/blender/util.h.
References make_float3().
Definition at line 387 of file cycles/blender/util.h.
References make_float3().
|
inlinestatic |
Definition at line 407 of file cycles/blender/util.h.
References name, ptr, RNA_float_get_array(), and float3::x.
Definition at line 392 of file cycles/blender/util.h.
References make_float4.
Referenced by set_default_value().
|
inlinestatic |
Definition at line 419 of file cycles/blender/util.h.
References name, ptr, RNA_float_get_array(), and float4::x.
|
inlinestatic |
Definition at line 451 of file cycles/blender/util.h.
References name, ptr, and RNA_int_get().
Referenced by BlenderSync::get_denoise_params(), BlenderSync::get_scene_params(), BlenderSync::get_session_params(), object_motion_steps(), set_default_value(), and BlenderSync::sync_integrator().
|
inlinestatic |
Definition at line 397 of file cycles/blender/util.h.
References make_int3().
Referenced by BlenderSmokeLoader::load_grid().
|
inlinestatic |
Definition at line 402 of file cycles/blender/util.h.
References make_int4().
|
inlinestatic |
Definition at line 502 of file cycles/blender/util.h.
References name, ptr, and RNA_string_get().
Referenced by blender_device_info(), and set_default_value().
|
inlinestatic |
Definition at line 352 of file cycles/blender/util.h.
References make_transform().
Referenced by add_node(), blender_camera_focal_distance(), blender_camera_from_view(), create_subd_mesh(), ObtainCacheParticleData(), BlenderSync::sync_camera(), and BlenderSync::sync_view().
|
inlinestatic |
|
inlinestatic |
Definition at line 302 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 321 of file cycles/blender/util.h.
References BKE_image_user_frame_calc().
Referenced by add_node().
Definition at line 550 of file cycles/blender/util.h.
References BKE_mesh_texspace_get(), make_float3(), and size().
Referenced by BlenderSmokeLoader::BlenderSmokeLoader(), and create_mesh().
|
static |
Definition at line 86 of file cycles/blender/util.h.
References blender::bke::Corner, and BObjectInfo::use_adaptive_subdivision.
Referenced by object_to_mesh().
|
inlinestatic |
Definition at line 72 of file cycles/blender/util.h.
References BKE_mesh_new_from_object(), Mesh::id, BObjectInfo::real_object, RNA_id_pointer_create(), and BObjectInfo::use_adaptive_subdivision.
Referenced by object_to_mesh().
|
inlinestatic |
Definition at line 622 of file cycles/blender/util.h.
References PointerRNA_NULL.
Referenced by BlenderSmokeLoader::BlenderSmokeLoader(), determine_geom_type(), and sync_smoke_volume().
|
inlinestatic |
Definition at line 33 of file cycles/blender/util.h.
References BKE_mesh_wrapper_ensure_subdivision(), Object::data, Mesh::id, OB_MESH, RNA_id_pointer_create(), and Object::type.
Referenced by determine_geom_type(), free_object_to_mesh(), BObjectInfo::is_real_object_data(), and BlenderSync::sync_recalc().
|
inlinestatic |
Definition at line 639 of file cycles/blender/util.h.
References i, and PointerRNA_NULL.
|
inlinestatic |
Definition at line 573 of file cycles/blender/util.h.
References get_boolean(), get_int(), max, min, and RNA_pointer_get().
Referenced by blender_camera_from_object().
|
inlinestatic |
Definition at line 779 of file cycles/blender/util.h.
References get_boolean(), Scene::MOTION_BLUR, Scene::MOTION_NONE, Scene::need_motion(), BObjectInfo::real_object, and RNA_pointer_get().
Referenced by sync_smoke_volume(), and sync_volume_object().
|
inlinestatic |
Definition at line 760 of file cycles/blender/util.h.
References flag, PATH_RAY_CAMERA, PATH_RAY_DIFFUSE, PATH_RAY_GLOSSY, PATH_RAY_SHADOW, PATH_RAY_TRANSMIT, and PATH_RAY_VOLUME_SCATTER.
|
static |
Definition at line 668 of file cycles/blender/util.h.
References enabled, mod, and PointerRNA_NULL.
Referenced by object_subdivision_to_mesh(), and object_subdivision_type().
|
inlinestatic |
Definition at line 705 of file cycles/blender/util.h.
References object_subdivision_modifier(), Mesh::SUBDIVISION_BOUNDARY_EDGE_AND_CORNER, Mesh::SUBDIVISION_BOUNDARY_EDGE_ONLY, Mesh::SUBDIVISION_CATMULL_CLARK, Mesh::SUBDIVISION_FVAR_LINEAR_ALL, Mesh::SUBDIVISION_FVAR_LINEAR_BOUNDARIES, Mesh::SUBDIVISION_FVAR_LINEAR_CORNERS_ONLY, Mesh::SUBDIVISION_FVAR_LINEAR_CORNERS_PLUS1, Mesh::SUBDIVISION_FVAR_LINEAR_CORNERS_PLUS2, Mesh::SUBDIVISION_FVAR_LINEAR_NONE, Mesh::SUBDIVISION_LINEAR, and Mesh::SUBDIVISION_NONE.
|
inlinestatic |
Definition at line 685 of file cycles/blender/util.h.
References object_subdivision_modifier(), Mesh::SUBDIVISION_CATMULL_CLARK, Mesh::SUBDIVISION_LINEAR, and Mesh::SUBDIVISION_NONE.
Referenced by BlenderSync::sync_recalc().
|
inlinestatic |
Definition at line 93 of file cycles/blender/util.h.
References BObjectInfo::is_real_object_data(), mesh_use_corner_normals(), object_copy_mesh_data(), BObjectInfo::object_data, PointerRNA_NULL, and BObjectInfo::use_adaptive_subdivision.
|
inlinestatic |
Definition at line 606 of file cycles/blender/util.h.
References get_boolean(), and RNA_pointer_get().
| void python_thread_state_restore | ( | void ** | python_thread_state | ) |
Definition at line 91 of file python.cpp.
Referenced by bake_func(), render_frame_finish_func(), render_func(), reset_func(), and sync_func().
| void python_thread_state_save | ( | void ** | python_thread_state | ) |
Definition at line 86 of file python.cpp.
Referenced by bake_func(), render_frame_finish_func(), render_func(), reset_func(), and sync_func().
|
inlinestatic |
Definition at line 808 of file cycles/blender/util.h.
References G, G_TRANSFORM_EDIT, G_TRANSFORM_OBJ, RegionView3D::rflag, RV3D_NAVIGATING, and RV3D_PAINTING.
Referenced by BlenderSync::sync_recalc().
|
inlinestatic |
Definition at line 345 of file cycles/blender/util.h.
References name.
Referenced by add_cryptomatte_layer().
|
inlinestatic |
Definition at line 292 of file cycles/blender/util.h.
Referenced by BlenderCamera::BlenderCamera(), and BlenderSession::reset_session().
|
inlinestatic |
Definition at line 297 of file cycles/blender/util.h.
Referenced by BlenderCamera::BlenderCamera(), and BlenderSession::reset_session().
|
inlinestatic |
Definition at line 436 of file cycles/blender/util.h.
References name, ptr, and RNA_boolean_set().
|
inlinestatic |
Definition at line 492 of file cycles/blender/util.h.
References name, ptr, and RNA_enum_set().
|
inlinestatic |
Definition at line 497 of file cycles/blender/util.h.
References name, ptr, and RNA_enum_set_identifier().
|
inlinestatic |
Definition at line 446 of file cycles/blender/util.h.
References name, ptr, and RNA_float_set().
|
inlinestatic |
Definition at line 414 of file cycles/blender/util.h.
References name, ptr, RNA_float_set_array(), and float3::x.
|
inlinestatic |
Definition at line 426 of file cycles/blender/util.h.
References name, ptr, RNA_float_set_array(), and float4::x.
|
inlinestatic |
Definition at line 456 of file cycles/blender/util.h.
References name, ptr, and RNA_int_set().
|
inlinestatic |
Definition at line 507 of file cycles/blender/util.h.
References name, ptr, and RNA_string_set().