|
Blender V4.5
|
#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.
References BKE_object_is_deform_modified(), BObjectInfo::is_real_object_data(), BObjectInfo::real_object, and true.
|
inlinestatic |
Definition at line 275 of file cycles/blender/util.h.
References BKE_object_is_modified(), and true.
|
inlinestatic |
Definition at line 521 of file cycles/blender/util.h.
References blender_absolute_path(), dirname(), path_dirname(), and path_join().
Referenced by blender_absolute_path().
| BlenderAttributeType blender_attribute_name_split_type | ( | ustring | name, |
| string * | r_real_name ) |
Definition at line 130 of file blender/shader.cpp.
References blender_attribute_name_split_type(), instancer_attr_prefix(), object_attr_prefix(), and view_layer_attr_prefix().
Referenced by blender_attribute_name_split_type().
|
inlinestatic |
Definition at line 148 of file cycles/blender/util.h.
References i, make_float3(), array< T, alignment >::resize(), and size().
|
inlinestatic |
Definition at line 166 of file cycles/blender/util.h.
References curvemap_minmax_curve(), max, and min.
Referenced by curvemap_minmax_curve(), and curvemapping_minmax().
|
inlinestatic |
Definition at line 224 of file cycles/blender/util.h.
References curvemapping_minmax(), data, i, make_float3(), and size().
|
inlinestatic |
Definition at line 200 of file cycles/blender/util.h.
References curvemapping_minmax(), data, i, max, min, and size().
|
inlinestatic |
Definition at line 172 of file cycles/blender/util.h.
References curvemap_minmax_curve(), FLT_MAX, and i.
Referenced by curvemapping_color_to_array(), and curvemapping_float_to_array().
|
inlinestatic |
Definition at line 186 of file cycles/blender/util.h.
|
inlinestatic |
Definition at line 136 of file cycles/blender/util.h.
References BKE_id_free(), free_object_to_mesh(), BObjectInfo::is_real_object_data(), object_get_data(), BObjectInfo::real_object, and BObjectInfo::use_adaptive_subdivision.
Referenced by free_object_to_mesh().
|
inlinestatic |
Definition at line 431 of file cycles/blender/util.h.
References RNA_boolean_get(), and true.
Referenced by object_motion_steps(), object_need_motion_attribute(), and object_use_deform_motion().
|
inlinestatic |
Definition at line 468 of file cycles/blender/util.h.
References assert, and RNA_enum_get().
|
inlinestatic |
Definition at line 481 of file cycles/blender/util.h.
References RNA_property_enum_get(), RNA_property_enum_identifier(), and RNA_struct_find_property().
|
inlinestatic |
Definition at line 441 of file cycles/blender/util.h.
References RNA_float_get().
|
inlinestatic |
Definition at line 372 of file cycles/blender/util.h.
References make_float2().
|
inlinestatic |
Definition at line 377 of file cycles/blender/util.h.
References make_float3().
|
inlinestatic |
Definition at line 382 of file cycles/blender/util.h.
References make_float3().
|
inlinestatic |
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 RNA_float_get_array(), and float3::x.
|
inlinestatic |
Definition at line 392 of file cycles/blender/util.h.
References make_float4().
|
inlinestatic |
Definition at line 419 of file cycles/blender/util.h.
References RNA_float_get_array().
|
inlinestatic |
Definition at line 451 of file cycles/blender/util.h.
References RNA_int_get().
Referenced by object_motion_steps().
|
inlinestatic |
Definition at line 397 of file cycles/blender/util.h.
References get_int3(), and make_int3().
Referenced by get_int3().
|
inlinestatic |
Definition at line 402 of file cycles/blender/util.h.
References get_int4(), and make_int4().
Referenced by get_int4().
|
inlinestatic |
Definition at line 502 of file cycles/blender/util.h.
References MEM_freeN(), RNA_string_get_alloc(), and str.
|
inlinestatic |
Definition at line 540 of file cycles/blender/util.h.
References PointerRNA::data.
|
inlinestatic |
Definition at line 352 of file cycles/blender/util.h.
References make_transform().
|
inlinestatic |
Definition at line 328 of file cycles/blender/util.h.
References tile.
|
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.
|
inlinestatic |
Definition at line 321 of file cycles/blender/util.h.
References BKE_image_user_frame_calc().
Definition at line 557 of file cycles/blender/util.h.
References BKE_mesh_texspace_get(), make_float3(), and size().
|
static |
Definition at line 86 of file cycles/blender/util.h.
References blender::bke::Corner, mesh_use_corner_normals(), and BObjectInfo::use_adaptive_subdivision.
Referenced by mesh_use_corner_normals(), and object_to_mesh().
|
inlinestatic |
Definition at line 72 of file cycles/blender/util.h.
References BKE_mesh_new_from_object(), Mesh::id, object_copy_mesh_data(), BObjectInfo::real_object, RNA_id_pointer_create(), and BObjectInfo::use_adaptive_subdivision.
Referenced by object_copy_mesh_data(), and object_to_mesh().
|
inlinestatic |
Definition at line 629 of file cycles/blender/util.h.
References PointerRNA_NULL.
|
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 free_object_to_mesh(), and BObjectInfo::is_real_object_data().
|
inlinestatic |
Definition at line 646 of file cycles/blender/util.h.
References i, object_mesh_cache_find(), and PointerRNA_NULL.
Referenced by object_mesh_cache_find().
|
inlinestatic |
Definition at line 580 of file cycles/blender/util.h.
References get_boolean(), get_int(), max, min, and RNA_pointer_get().
|
inlinestatic |
Definition at line 788 of file cycles/blender/util.h.
References get_boolean(), Scene::MOTION_BLUR, Scene::MOTION_NONE, Scene::need_motion(), object_need_motion_attribute(), BObjectInfo::real_object, and RNA_pointer_get().
Referenced by object_need_motion_attribute(), sync_smoke_volume(), and sync_volume_object().
|
inlinestatic |
Definition at line 769 of file cycles/blender/util.h.
References object_ray_visibility(), PATH_RAY_CAMERA, PATH_RAY_DIFFUSE, PATH_RAY_GLOSSY, PATH_RAY_SHADOW, PATH_RAY_TRANSMIT, and PATH_RAY_VOLUME_SCATTER.
Referenced by object_ray_visibility().
|
static |
Definition at line 675 of file cycles/blender/util.h.
References PointerRNA::data, mod, object_subdivision_modifier(), PointerRNA_NULL, RNA_boolean_get(), and RNA_pointer_get().
Referenced by object_subdivision_modifier(), object_subdivision_to_mesh(), and object_subdivision_type().
|
inlinestatic |
Definition at line 714 of file cycles/blender/util.h.
References object_subdivision_modifier(), object_subdivision_to_mesh(), 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.
Referenced by object_subdivision_to_mesh().
|
inlinestatic |
Definition at line 694 of file cycles/blender/util.h.
References object_subdivision_modifier(), object_subdivision_type(), Mesh::SUBDIVISION_CATMULL_CLARK, Mesh::SUBDIVISION_LINEAR, and Mesh::SUBDIVISION_NONE.
Referenced by object_subdivision_type().
|
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, object_to_mesh(), PointerRNA_NULL, and BObjectInfo::use_adaptive_subdivision.
Referenced by object_to_mesh().
|
inlinestatic |
Definition at line 613 of file cycles/blender/util.h.
References get_boolean(), object_use_deform_motion(), and RNA_pointer_get().
Referenced by object_use_deform_motion().
| void python_thread_state_restore | ( | void ** | python_thread_state | ) |
Definition at line 91 of file python.cpp.
References python_thread_state_restore().
Referenced by bake_func(), python_thread_state_restore(), 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.
References python_thread_state_save().
Referenced by bake_func(), python_thread_state_save(), render_frame_finish_func(), render_func(), reset_func(), and sync_func().
|
inlinestatic |
Definition at line 817 of file cycles/blender/util.h.
References G, G_TRANSFORM_EDIT, G_TRANSFORM_OBJ, region_view3d_navigating_or_transforming(), RegionView3D::rflag, RV3D_NAVIGATING, and RV3D_PAINTING.
Referenced by region_view3d_navigating_or_transforming().
|
inlinestatic |
Definition at line 345 of file cycles/blender/util.h.
|
inlinestatic |
Definition at line 292 of file cycles/blender/util.h.
References render_resolution_x().
Referenced by render_resolution_x().
|
inlinestatic |
Definition at line 297 of file cycles/blender/util.h.
References render_resolution_y().
Referenced by render_resolution_y().
|
inlinestatic |
Definition at line 436 of file cycles/blender/util.h.
References RNA_boolean_set(), and set_boolean().
Referenced by set_boolean().
|
inlinestatic |
Definition at line 492 of file cycles/blender/util.h.
References RNA_enum_set(), and set_enum().
Referenced by set_enum(), and set_enum().
|
inlinestatic |
Definition at line 497 of file cycles/blender/util.h.
References RNA_enum_set_identifier(), and set_enum().
|
inlinestatic |
Definition at line 446 of file cycles/blender/util.h.
References RNA_float_set(), and set_float().
Referenced by set_float().
|
inlinestatic |
Definition at line 414 of file cycles/blender/util.h.
References RNA_float_set_array(), set_float3(), and float3::x.
Referenced by set_float3().
|
inlinestatic |
Definition at line 426 of file cycles/blender/util.h.
References RNA_float_set_array(), and set_float4().
Referenced by set_float4().
|
inlinestatic |
Definition at line 456 of file cycles/blender/util.h.
References RNA_int_set(), and set_int().
Referenced by set_int().
|
inlinestatic |
Definition at line 514 of file cycles/blender/util.h.
References RNA_string_set(), and set_string().
Referenced by set_string().