Blender
V3.3
|
Namespaces | |
attribute_accessor_functions | |
calc_edges | |
crazyspace | |
cryptomatte | |
curves | |
id | |
idprop | |
image | |
mesh_surface_sample | |
node_field_inferencing | |
paint | |
pbvh | |
tests | |
Variables | |
const char * | no_procedural_access_message |
static const std::string | ATTR_POSITION = "position" |
static const std::string | ATTR_RADIUS = "radius" |
static const std::string | ATTR_TILT = "tilt" |
static const std::string | ATTR_CURVE_TYPE = "curve_type" |
static const std::string | ATTR_CYCLIC = "cyclic" |
static const std::string | ATTR_RESOLUTION = "resolution" |
static const std::string | ATTR_NORMAL_MODE = "normal_mode" |
static const std::string | ATTR_HANDLE_TYPE_LEFT = "handle_type_left" |
static const std::string | ATTR_HANDLE_TYPE_RIGHT = "handle_type_right" |
static const std::string | ATTR_HANDLE_POSITION_LEFT = "handle_left" |
static const std::string | ATTR_HANDLE_POSITION_RIGHT = "handle_right" |
static const std::string | ATTR_NURBS_ORDER = "nurbs_order" |
static const std::string | ATTR_NURBS_WEIGHT = "nurbs_weight" |
static const std::string | ATTR_NURBS_KNOTS_MODE = "knots_mode" |
static const std::string | ATTR_SELECTION_POINT_FLOAT = ".selection_point_float" |
static const std::string | ATTR_SELECTION_CURVE_FLOAT = ".selection_curve_float" |
static const std::string | ATTR_SURFACE_UV_COORDINATE = "surface_uv_coordinate" |
using blender::bke::AssetCatalogOrderedSet = typedef std::set<const AssetCatalog *, AssetCatalogLessThan> |
Set that stores catalogs ordered by (path, UUID). Being a set, duplicates are removed. The catalog's simple name is ignored in this.
Definition at line 495 of file BKE_asset_catalog.hh.
using blender::bke::AttributeForeachCallback = typedef FunctionRef<bool(const AttributeIDRef &attribute_id, const AttributeMetaData &meta_data)> |
Definition at line 129 of file BKE_attribute.hh.
using blender::bke::BoneNameSet = typedef blender::Set<std::string> |
Definition at line 27 of file BKE_armature.hh.
using blender::bke::CatalogFilePath = typedef std::string |
Definition at line 39 of file BKE_asset_catalog.hh.
using blender::bke::CatalogID = typedef bUUID |
Definition at line 35 of file BKE_asset_catalog.hh.
using blender::bke::CatalogPathComponent = typedef std::string |
Definition at line 36 of file BKE_asset_catalog.hh.
using blender::bke::FoundFCurveCallback = typedef blender::FunctionRef<void(FCurve *fcurve, const char *bone_name)> |
Definition at line 18 of file BKE_action.hh.
using blender::bke::MutableAssetCatalogOrderedSet = typedef std::set<AssetCatalog *, AssetCatalogLessThan> |
Definition at line 496 of file BKE_asset_catalog.hh.
using blender::bke::NodeSocketPair = typedef std::pair<bNode *, bNodeSocket *> |
Definition at line 676 of file node_tree_update.cc.
using blender::bke::ObjectModifierPair = typedef std::pair<Object *, ModifierData *> |
Definition at line 675 of file node_tree_update.cc.
using blender::bke::OwningAssetCatalogMap = typedef Map<CatalogID, std::unique_ptr<AssetCatalog> > |
Definition at line 40 of file BKE_asset_catalog.hh.
using blender::bke::SelectedBoneCallback = typedef blender::FunctionRef<void(Bone *bone)> |
Definition at line 23 of file BKE_armature.hh.
using blender::bke::StrongAnonymousAttributeID = typedef OwnedAnonymousAttributeID<true> |
Definition at line 152 of file BKE_anonymous_attribute.hh.
using blender::bke::TreeNodePair = typedef std::pair<bNodeTree *, bNode *> |
Definition at line 674 of file node_tree_update.cc.
using blender::bke::WeakAnonymousAttributeID = typedef OwnedAnonymousAttributeID<false> |
Definition at line 153 of file BKE_anonymous_attribute.hh.
|
static |
Definition at line 1529 of file curves_geometry.cc.
References blender::attribute_math::convert_to_static_type(), and blender::GVArrayCommon::type().
Referenced by blender::bke::CurvesGeometry::adapt_domain().
|
static |
Copy the value from a curve to all of its points.
Definition at line 1520 of file curves_geometry.cc.
References curves, blender::MutableSpan< T >::fill(), and blender::MutableSpan< T >::slice().
|
static |
Definition at line 1497 of file curves_geometry.cc.
References blender::attribute_math::convert_to_static_type(), and blender::GVArrayCommon::type().
Referenced by blender::bke::CurvesGeometry::adapt_domain().
void blender::bke::adapt_curve_domain_point_to_curve_impl | ( | const CurvesGeometry & | curves, |
const VArray< bool > & | old_values, | ||
MutableSpan< bool > | r_values | ||
) |
A curve is selected if all of its control points were selected.
Definition at line 1482 of file curves_geometry.cc.
References curves, and blender::MutableSpan< T >::fill().
|
static |
Mix together all of a curve's control point values.
Definition at line 1461 of file curves_geometry.cc.
References curves.
|
static |
Definition at line 192 of file geometry_component_curve.cc.
References blender::attribute_math::convert_to_static_type(), and blender::GVArrayCommon::type().
Referenced by adapt_curve_attribute_domain().
void blender::bke::adapt_curve_domain_point_to_spline_impl | ( | const CurveEval & | curve, |
const VArray< bool > & | old_values, | ||
MutableSpan< bool > | r_values | ||
) |
A spline is selected if all of its control points were selected.
Definition at line 169 of file geometry_component_curve.cc.
References BLI_assert, curve, blender::MutableSpan< T >::fill(), blender::MutableSpan< T >::size(), and Curve::size.
|
static |
Mix together all of a spline's control point values.
Definition at line 140 of file geometry_component_curve.cc.
References BLI_assert, curve, blender::MutableSpan< T >::size(), Curve::size, and T.
|
static |
Definition at line 277 of file geometry_component_curve.cc.
References blender::attribute_math::convert_to_static_type(), and blender::GVArrayCommon::type().
Referenced by adapt_curve_attribute_domain().
|
static |
Definition at line 355 of file geometry_component_mesh.cc.
References blender::attribute_math::convert_to_static_type(), and blender::GVArrayCommon::type().
Referenced by adapt_mesh_attribute_domain().
void blender::bke::adapt_mesh_domain_corner_to_edge_impl | ( | const Mesh & | mesh, |
const VArray< bool > & | old_values, | ||
MutableSpan< bool > | r_values | ||
) |
Definition at line 317 of file geometry_component_mesh.cc.
References BLI_assert, MLoop::e, blender::MutableSpan< T >::fill(), if(), MPoly::loopstart, mesh, Mesh::mloop, Mesh::mpoly, blender::threading::parallel_for(), blender::MutableSpan< T >::size(), Mesh::totedge, MPoly::totloop, and Mesh::totpoly.
|
static |
Definition at line 290 of file geometry_component_mesh.cc.
References BLI_assert, MLoop::e, MPoly::loopstart, mesh, Mesh::mloop, Mesh::mpoly, blender::MutableSpan< T >::size(), Mesh::totedge, MPoly::totloop, and Mesh::totpoly.
|
static |
Definition at line 251 of file geometry_component_mesh.cc.
References blender::attribute_math::convert_to_static_type(), and blender::GVArrayCommon::type().
Referenced by adapt_mesh_attribute_domain().
|
static |
Definition at line 218 of file geometry_component_mesh.cc.
References blender::attribute_math::convert_to_static_type(), and blender::GVArrayCommon::type().
Referenced by adapt_mesh_attribute_domain().
void blender::bke::adapt_mesh_domain_corner_to_point_impl | ( | const Mesh & | mesh, |
const VArray< bool > & | old_values, | ||
MutableSpan< bool > | r_values | ||
) |
Definition at line 192 of file geometry_component_mesh.cc.
References BLI_assert, blender::MutableSpan< T >::fill(), mesh, Mesh::mloop, point_index, blender::MutableSpan< T >::size(), Mesh::totloop, Mesh::totvert, and MLoop::v.
|
static |
Definition at line 174 of file geometry_component_mesh.cc.
References BLI_assert, mesh, Mesh::mloop, point_index, blender::MutableSpan< T >::size(), T, Mesh::totloop, Mesh::totvert, and MLoop::v.
|
static |
Definition at line 628 of file geometry_component_mesh.cc.
References blender::attribute_math::convert_to_static_type(), and blender::GVArrayCommon::type().
Referenced by adapt_mesh_attribute_domain().
void blender::bke::adapt_mesh_domain_edge_to_corner_impl | ( | const Mesh & | mesh, |
const VArray< bool > & | old_values, | ||
MutableSpan< bool > | r_values | ||
) |
Definition at line 607 of file geometry_component_mesh.cc.
References BLI_assert, blender::MutableSpan< T >::fill(), if(), MPoly::loopstart, mesh, Mesh::mloop, Mesh::mpoly, blender::MutableSpan< T >::size(), Mesh::totloop, MPoly::totloop, and Mesh::totpoly.
void blender::bke::adapt_mesh_domain_edge_to_corner_impl | ( | const Mesh & | mesh, |
const VArray< T > & | old_values, | ||
MutableSpan< T > | r_values | ||
) |
Definition at line 582 of file geometry_component_mesh.cc.
References BLI_assert, MPoly::loopstart, mesh, Mesh::mloop, Mesh::mpoly, blender::MutableSpan< T >::size(), Mesh::totloop, MPoly::totloop, and Mesh::totpoly.
|
static |
Definition at line 692 of file geometry_component_mesh.cc.
References blender::attribute_math::convert_to_static_type(), and blender::GVArrayCommon::type().
Referenced by adapt_mesh_attribute_domain().
|
static |
Definition at line 678 of file geometry_component_mesh.cc.
References blender::attribute_math::convert_to_static_type(), and blender::GVArrayCommon::type().
Referenced by adapt_mesh_attribute_domain().
void blender::bke::adapt_mesh_domain_edge_to_point_impl | ( | const Mesh & | mesh, |
const VArray< bool > & | old_values, | ||
MutableSpan< bool > | r_values | ||
) |
Definition at line 662 of file geometry_component_mesh.cc.
References BLI_assert, blender::MutableSpan< T >::fill(), Mesh::medge, mesh, blender::MutableSpan< T >::size(), Mesh::totedge, and Mesh::totvert.
|
static |
Definition at line 643 of file geometry_component_mesh.cc.
References BLI_assert, Mesh::medge, mesh, blender::MutableSpan< T >::size(), T, Mesh::totedge, and Mesh::totvert.
|
static |
Definition at line 442 of file geometry_component_mesh.cc.
References blender::attribute_math::convert_to_static_type(), and blender::GVArrayCommon::type().
Referenced by adapt_mesh_attribute_domain().
void blender::bke::adapt_mesh_domain_face_to_corner_impl | ( | const Mesh & | mesh, |
const VArray< T > & | old_values, | ||
MutableSpan< T > | r_values | ||
) |
Definition at line 427 of file geometry_component_mesh.cc.
References BLI_assert, mesh, blender::threading::parallel_for(), blender::MutableSpan< T >::size(), Mesh::totloop, and Mesh::totpoly.
|
static |
Definition at line 496 of file geometry_component_mesh.cc.
References blender::attribute_math::convert_to_static_type(), and blender::GVArrayCommon::type().
Referenced by adapt_mesh_attribute_domain().
void blender::bke::adapt_mesh_domain_face_to_edge_impl | ( | const Mesh & | mesh, |
const VArray< bool > & | old_values, | ||
MutableSpan< bool > | r_values | ||
) |
Definition at line 477 of file geometry_component_mesh.cc.
References BLI_assert, MLoop::e, blender::MutableSpan< T >::fill(), MPoly::loopstart, mesh, Mesh::mloop, Mesh::mpoly, blender::MutableSpan< T >::size(), Mesh::totedge, MPoly::totloop, and Mesh::totpoly.
void blender::bke::adapt_mesh_domain_face_to_edge_impl | ( | const Mesh & | mesh, |
const VArray< T > & | old_values, | ||
MutableSpan< T > | r_values | ||
) |
Definition at line 457 of file geometry_component_mesh.cc.
References BLI_assert, MLoop::e, MPoly::loopstart, mesh, Mesh::mloop, Mesh::mpoly, blender::MutableSpan< T >::size(), T, Mesh::totedge, MPoly::totloop, and Mesh::totpoly.
|
static |
Definition at line 411 of file geometry_component_mesh.cc.
References blender::attribute_math::convert_to_static_type(), and blender::GVArrayCommon::type().
Referenced by adapt_mesh_attribute_domain().
void blender::bke::adapt_mesh_domain_face_to_point_impl | ( | const Mesh & | mesh, |
const VArray< bool > & | old_values, | ||
MutableSpan< bool > | r_values | ||
) |
Definition at line 392 of file geometry_component_mesh.cc.
References BLI_assert, blender::MutableSpan< T >::fill(), MPoly::loopstart, mesh, Mesh::mloop, Mesh::mpoly, blender::MutableSpan< T >::size(), MPoly::totloop, Mesh::totpoly, Mesh::totvert, and MLoop::v.
void blender::bke::adapt_mesh_domain_face_to_point_impl | ( | const Mesh & | mesh, |
const VArray< T > & | old_values, | ||
MutableSpan< T > | r_values | ||
) |
Definition at line 370 of file geometry_component_mesh.cc.
References BLI_assert, MPoly::loopstart, mesh, Mesh::mloop, Mesh::mpoly, point_index, blender::MutableSpan< T >::size(), T, MPoly::totloop, Mesh::totpoly, Mesh::totvert, and MLoop::v.
|
static |
Each corner's value is simply a copy of the value at its vertex.
Definition at line 237 of file geometry_component_mesh.cc.
References blender::attribute_math::convert_to_static_type(), and blender::GVArrayCommon::type().
Referenced by adapt_mesh_attribute_domain().
|
static |
Definition at line 550 of file geometry_component_mesh.cc.
References blender::attribute_math::convert_to_static_type(), and blender::GVArrayCommon::type().
Referenced by adapt_mesh_attribute_domain().
|
static |
Definition at line 510 of file geometry_component_mesh.cc.
References blender::attribute_math::convert_to_static_type(), and blender::GVArrayCommon::type().
Referenced by adapt_mesh_attribute_domain().
|
static |
Definition at line 158 of file attribute_access.cc.
References BLI_assert_unreachable, CD_ASSIGN, CD_DEFAULT, CustomData_add_layer(), data, blender::bke::AttributeInit::Default, domain_num(), blender::GVArrayCommon::index_range(), blender::GVArrayCommon::materialize_to_uninitialized(), MEM_freeN, blender::bke::AttributeInit::MoveArray, blender::bke::AttributeInit::type, and blender::bke::AttributeInit::VArray.
Referenced by blender::bke::BuiltinCustomDataLayerProvider::try_create().
|
static |
Definition at line 211 of file attribute_access.cc.
References add_generic_custom_data_layer(), CD_ASSIGN, CD_DEFAULT, data, blender::bke::AttributeInit::Default, domain_num(), blender::GVArrayCommon::index_range(), blender::GVArrayCommon::materialize_to_uninitialized(), MEM_freeN, blender::bke::AttributeInit::MoveArray, CustomData::totlayer, blender::bke::AttributeInit::type, and blender::bke::AttributeInit::VArray.
Referenced by blender::bke::CustomDataAttributeProvider::try_create(), and blender::bke::BuiltinCustomDataLayerProvider::try_create().
|
static |
Definition at line 28 of file geometry_set_instances.cc.
References BKE_mesh_wrapper_ensure_mdata(), BKE_modifier_get_evaluated_mesh_from_evaluated_object(), mesh, ReadOnly, and GeometrySet::replace_mesh().
Referenced by object_get_evaluated_geometry_set().
|
static |
Definition at line 193 of file attribute_access.cc.
References blender::bke::AttributeIDRef::anonymous_id(), blender::StringRefBase::copy(), CustomData_add_layer_anonymous(), CustomData_add_layer_named(), domain_num(), blender::bke::AttributeIDRef::is_named(), MAX_NAME, and blender::bke::AttributeIDRef::name().
Referenced by add_custom_data_layer_from_attribute_init(), blender::bke::CustomDataAttributes::create(), and blender::bke::CustomDataAttributes::create_by_move().
|
static |
Definition at line 17 of file type_conversions.cc.
References Freestyle::a, blender::bke::DataTypeConversions::add(), blender::CPPType::name(), src, and blender::gpu::shader::to_type().
Definition at line 57 of file attribute_access.cc.
References blender::StringRefBase::startswith().
Referenced by add_attribute_search_button(), blender::ui::attribute_search_add_items(), BKE_attribute_allow_procedural_access(), find_output_attributes_to_store(), blender::ed::spreadsheet::GeometryDataSource::foreach_default_column_ids(), initialize_group_input(), blender::nodes::node_geo_input_named_attribute_cc::node_geo_exec(), blender::nodes::node_geo_remove_attribute_cc::node_geo_exec(), and blender::nodes::node_geo_store_named_attribute_cc::node_geo_exec().
|
static |
Definition at line 285 of file blenkernel/intern/asset_catalog.cc.
References BLI_join_dirfile(), blender::StringRefBase::data(), blender::bke::AssetCatalogService::DEFAULT_CATALOG_FILENAME, and PATH_MAX.
Referenced by blender::bke::AssetCatalogService::find_suitable_cdf_path_for_writing(), and blender::bke::AssetCatalogService::load_directory_recursive().
|
static |
Definition at line 62 of file attribute_access.cc.
References BLI_assert_unreachable, CD_PROP_BOOL, CD_PROP_BYTE_COLOR, CD_PROP_COLOR, CD_PROP_FLOAT, CD_PROP_FLOAT2, CD_PROP_FLOAT3, CD_PROP_INT32, CD_PROP_INT8, and CD_PROP_STRING.
Referenced by attribute_data_type_highest_complexity().
eCustomDataType blender::bke::attribute_data_type_highest_complexity | ( | Span< eCustomDataType > | data_types | ) |
Definition at line 92 of file attribute_access.cc.
References attribute_data_type_complexity(), and CD_PROP_COLOR.
Referenced by GeometrySet::gather_attributes_for_propagation().
eAttrDomain blender::bke::attribute_domain_highest_priority | ( | Span< eAttrDomain > | domains | ) |
Domains with a higher "information density" have a higher priority, in order to choose a domain that will not lose data through domain conversion.
Definition at line 134 of file attribute_access.cc.
References ATTR_DOMAIN_CORNER, and attribute_domain_priority().
Referenced by GeometrySet::gather_attributes_for_propagation(), and blender::nodes::node_geo_join_geometry_cc::get_final_attribute_info().
|
static |
Definition at line 112 of file attribute_access.cc.
References ATTR_DOMAIN_CORNER, ATTR_DOMAIN_CURVE, ATTR_DOMAIN_EDGE, ATTR_DOMAIN_FACE, ATTR_DOMAIN_INSTANCE, ATTR_DOMAIN_POINT, and BLI_assert_unreachable.
Referenced by attribute_domain_highest_priority().
|
static |
Definition at line 150 of file attribute_access.cc.
References CustomDataLayer::anonymous_id, and CustomDataLayer::name.
Referenced by blender::bke::CustomDataAttributes::foreach_attribute(), blender::bke::CustomDataAttributeProvider::foreach_attribute(), and blender::bke::CustomDataAttributes::reorder().
void blender::bke::BKE_action_find_fcurves_with_bones | ( | const bAction * | action, |
FoundFCurveCallback | callback | ||
) |
Definition at line 21 of file action_bones.cc.
References BLI_str_quoted_substr(), callback, bAction::curves, LISTBASE_FOREACH, and MAXBONENAME.
Referenced by pose_backup_create().
BoneNameSet blender::bke::BKE_armature_find_selected_bone_names | ( | const bArmature * | armature | ) |
Return a set of names of the selected bones. An empty set means "ignore bone selection", which either means all bones are selected, or none are.
Definition at line 48 of file armature_selection.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), BKE_armature_find_selected_bones(), callback, and result.
Referenced by ED_pose_backup_create_selected_bones().
SelectedBonesResult blender::bke::BKE_armature_find_selected_bones | ( | const bArmature * | armature, |
SelectedBoneCallback | callback | ||
) |
Definition at line 37 of file armature_selection.cc.
References bArmature::bonebase, callback, LISTBASE_FOREACH, and result.
Referenced by BKE_armature_find_selected_bone_names(), and blender::bke::tests::TEST_F().
|
static |
Definition at line 213 of file type_conversions.cc.
References Freestyle::a, bool_to_color(), and blender::ColorSceneLinear4f< Alpha >::encode().
|
static |
Definition at line 209 of file type_conversions.cc.
References Freestyle::a.
Referenced by bool_to_byte_color().
Definition at line 189 of file type_conversions.cc.
References Freestyle::a.
Definition at line 201 of file type_conversions.cc.
References Freestyle::a.
Definition at line 205 of file type_conversions.cc.
References Freestyle::a.
Definition at line 197 of file type_conversions.cc.
References Freestyle::a.
Definition at line 193 of file type_conversions.cc.
References Freestyle::a.
void blender::bke::build_offsets | ( | MutableSpan< int > | offsets, |
const CountFn & | count_fn | ||
) |
Definition at line 453 of file curves_geometry.cc.
References blender::MutableSpan< T >::drop_back(), blender::MutableSpan< T >::index_range(), blender::MutableSpan< T >::last(), and offset.
Referenced by calculate_evaluated_offsets().
|
static |
Builds an array that for every point, contains the corresponding curve index.
Definition at line 1119 of file curves_geometry.cc.
References curves, and blender::threading::parallel_for().
Referenced by copy_with_removed_points().
|
static |
Definition at line 247 of file type_conversions.cc.
References Freestyle::a.
|
static |
Definition at line 271 of file type_conversions.cc.
References Freestyle::a.
|
static |
Definition at line 251 of file type_conversions.cc.
References Freestyle::a, and color_to_float().
|
static |
Definition at line 263 of file type_conversions.cc.
References Freestyle::a, and color_to_float2().
|
static |
Definition at line 267 of file type_conversions.cc.
References Freestyle::a, and color_to_float3().
|
static |
Definition at line 255 of file type_conversions.cc.
References Freestyle::a, and color_to_int().
|
static |
Definition at line 259 of file type_conversions.cc.
References Freestyle::a, and color_to_int8().
|
static |
Definition at line 463 of file curves_geometry.cc.
References BLI_assert_unreachable, build_offsets(), blender::bke::curves::catmull_rom::calculate_evaluated_num(), CURVE_TYPE_BEZIER, CURVE_TYPE_CATMULL_ROM, CURVE_TYPE_NURBS, CURVE_TYPE_POLY, curves, blender::IndexRange::last(), blender::IndexRange::size(), blender::MutableSpan< T >::slice(), and types.
Referenced by blender::bke::CurvesGeometry::ensure_evaluated_offsets().
|
static |
Definition at line 252 of file curve_to_mesh_convert.cc.
References blender::bke::CurvesGeometry::curves_num(), blender::bke::CurvesGeometry::curves_range(), blender::bke::CurvesGeometry::ensure_evaluated_offsets(), blender::bke::CurvesGeometry::evaluated_points_for_curve(), blender::bke::CurvesInfo::main, blender::bke::CurvesInfo::main_cyclic, blender::bke::CurvesInfo::profile, blender::bke::CurvesInfo::profile_cyclic, result, blender::bke::curves::segments_num(), and blender::IndexRange::size().
Referenced by curve_to_mesh_sweep().
std::array< int, CURVE_TYPES_NUM > blender::bke::calculate_type_counts | ( | const VArray< int8_t > & | types | ) |
Definition at line 263 of file curves_geometry.cc.
References init, blender::threading::parallel_reduce(), result, and types.
Referenced by blender::bke::CurvesGeometry::curve_type_counts(), and blender::bke::CurvesGeometry::update_curve_types().
|
static |
Definition at line 218 of file type_conversions.cc.
References Freestyle::a, and rgb_to_grayscale().
|
static |
Definition at line 242 of file type_conversions.cc.
References Freestyle::a.
|
static |
Definition at line 222 of file type_conversions.cc.
References Freestyle::a, and rgb_to_grayscale().
Referenced by byte_color_to_float().
|
static |
Definition at line 234 of file type_conversions.cc.
References Freestyle::a.
Referenced by byte_color_to_float2().
|
static |
Definition at line 238 of file type_conversions.cc.
References Freestyle::a.
Referenced by byte_color_to_float3().
|
static |
Definition at line 226 of file type_conversions.cc.
References Freestyle::a, and rgb_to_grayscale().
Referenced by byte_color_to_int(), and color_to_int8().
|
static |
Definition at line 230 of file type_conversions.cc.
References Freestyle::a, color_to_int(), and int_to_int8().
Referenced by byte_color_to_int8().
|
static |
Definition at line 244 of file geometry_component_curves.cc.
References ATTR_DOMAIN_CURVE, ATTR_DOMAIN_POINT, component(), curves, Curves::geometry, and blender::bke::image::partial_update::wrap().
Referenced by blender::bke::CurveLengthFieldInput::get_varray_for_context().
|
static |
Definition at line 1086 of file curves_geometry.cc.
References BLI_assert, POINTER_OFFSET, blender::IndexRange::size(), blender::IndexRange::start(), and type.
|
static |
Definition at line 598 of file curve_to_mesh_convert.cc.
References ATTR_DOMAIN_CORNER, ATTR_DOMAIN_EDGE, ATTR_DOMAIN_FACE, ATTR_DOMAIN_POINT, BLI_assert_unreachable, blender::attribute_math::convert_to_static_type(), blender::bke::ResultOffsets::edge, blender::bke::ResultOffsets::loop, blender::bke::ResultOffsets::poly, src, and blender::bke::ResultOffsets::vert.
Referenced by curve_to_mesh_sweep().
|
static |
dst
to be initialized, since the original attributes must be freed. Definition at line 79 of file curves_geometry.cc.
References CD_DUPLICATE, CD_MASK_ALL, CurvesGeometry::curve_data, CurvesGeometry::curve_num, CurvesGeometry::curve_offsets, CustomData_copy(), CustomData_free(), MEM_malloc_arrayN, MEM_SAFE_FREE, blender::bke::CurvesGeometry::offsets_for_write(), CurvesGeometry::point_data, CurvesGeometry::point_num, CurvesGeometry::runtime, src, and blender::bke::CurvesGeometry::tag_topology_changed().
Referenced by blender::bke::CurvesGeometry::CurvesGeometry(), and blender::bke::CurvesGeometry::operator=().
|
static |
Definition at line 581 of file curve_to_mesh_convert.cc.
References blender::devirtualize_varray(), blender::Span< T >::index_range(), blender::threading::parallel_for(), and src.
|
static |
Definition at line 432 of file curve_to_mesh_convert.cc.
References blender::MutableSpan< T >::fill(), blender::MutableSpan< T >::slice(), and src.
|
static |
Definition at line 446 of file curve_to_mesh_convert.cc.
References blender::MutableSpan< T >::fill(), blender::MutableSpan< T >::slice(), and src.
|
static |
Definition at line 421 of file curve_to_mesh_convert.cc.
References blender::MutableSpan< T >::fill(), blender::MutableSpan< T >::slice(), and src.
|
static |
Definition at line 457 of file curve_to_mesh_convert.cc.
References blender::attribute_math::convert_to_static_type(), and blender::GSpan::type().
Referenced by curve_to_mesh_sweep().
|
static |
Definition at line 515 of file curve_to_mesh_convert.cc.
References blender::MutableSpan< T >::fill(), blender::MutableSpan< T >::slice(), and src.
|
static |
Definition at line 526 of file curve_to_mesh_convert.cc.
References src.
|
static |
Definition at line 502 of file curve_to_mesh_convert.cc.
References src.
|
static |
Definition at line 539 of file curve_to_mesh_convert.cc.
References blender::attribute_math::convert_to_static_type(), and blender::GSpan::type().
Referenced by curve_to_mesh_sweep().
|
static |
Definition at line 1108 of file curves_geometry.cc.
References blender::attribute_math::convert_to_static_type(), and src.
Referenced by copy_with_removed_points().
|
static |
Definition at line 1099 of file curves_geometry.cc.
References map, and blender::threading::parallel_for().
|
static |
Definition at line 1226 of file curves_geometry.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), curves, blender::IndexMask::extract_ranges_invert(), blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), blender::MutableSpan< T >::last(), blender::threading::parallel_for(), blender::threading::parallel_invoke(), and blender::IndexRange::size().
Referenced by blender::bke::CurvesGeometry::remove_curves().
|
static |
Definition at line 1130 of file curves_geometry.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), ATTR_DOMAIN_MASK_CURVE, ATTR_DOMAIN_MASK_POINT, attribute, BLI_assert, build_point_to_curve_map(), copy_with_map(), curves, blender::IndexMask::extract_ranges_invert(), blender::Array< T, InlineBufferCapacity, Allocator >::index_range(), blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), blender::threading::parallel_for(), blender::threading::parallel_invoke(), retrieve_attributes_for_transfer(), blender::IndexMask::size(), and blender::Vector< T, InlineBufferCapacity, Allocator >::size().
Referenced by blender::bke::CurvesGeometry::remove_points().
eCustomDataType blender::bke::cpp_type_to_custom_data_type | ( | const blender::CPPType & | type | ) |
Definition at line 5337 of file customdata.cc.
References CD_PROP_BOOL, CD_PROP_BYTE_COLOR, CD_PROP_COLOR, CD_PROP_FLOAT, CD_PROP_FLOAT2, CD_PROP_FLOAT3, CD_PROP_INT32, CD_PROP_INT8, and type.
Referenced by BKE_id_attribute_duplicate(), blender::nodes::node_geo_delete_geometry_cc::copy_attributes(), blender::nodes::node_geo_delete_geometry_cc::copy_attributes_based_on_map(), blender::nodes::node_geo_delete_geometry_cc::copy_attributes_based_on_mask(), blender::nodes::node_geo_duplicate_elements_cc::copy_attributes_without_id(), blender::nodes::node_geo_duplicate_elements_cc::copy_curve_attributes_without_id(), blender::nodes::node_geo_duplicate_elements_cc::copy_edge_attributes_without_id(), blender::nodes::node_geo_duplicate_elements_cc::copy_face_attributes_without_id(), blender::bke::CustomDataAttributes::get_for_read(), get_mutable_attribute(), get_span_attribute(), get_varray_attribute(), blender::bke::AttributeFieldInput::get_varray_for_context(), blender::bke::AnonymousAttributeFieldInput::get_varray_for_context(), blender::bke::AttributeAccessor::lookup(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write(), blender::nodes::node_geo_raycast_cc::output_attribute_field(), blender::nodes::node_geo_transfer_attribute_cc::output_attribute_field(), blender::geometry::retrieve_attribute_spans(), store_computed_output_attributes(), blender::nodes::node_geo_dual_mesh_cc::transfer_attributes(), blender::nodes::node_geo_attribute_capture_cc::try_capture_field_on_geometry(), blender::nodes::node_geo_store_named_attribute_cc::try_capture_field_on_geometry(), and vertex_paint_from_weight().
|
static |
In this function all the attribute providers for a curve component are created. Most data in this function is statically allocated, because it does not change over time.
Definition at line 1327 of file geometry_component_curve.cc.
References ATTR_DOMAIN_CURVE, Spline::attributes, CD_PROP_BOOL, CD_PROP_INT32, blender::bke::BuiltinAttributeProvider::Creatable, curve, blender::bke::BuiltinAttributeProvider::Deletable, blender::bke::CustomDataAttributes::get_for_read(), blender::bke::CustomDataAttributes::get_for_write(), id, make_cyclic_read_attribute(), make_cyclic_write_attribute(), make_resolution_read_attribute(), make_resolution_write_attribute(), Spline::mark_cache_invalid(), blender::bke::BuiltinAttributeProvider::NonCreatable, blender::bke::BuiltinAttributeProvider::NonDeletable, Spline::radii(), Curve::size, Spline::tilts(), and blender::bke::BuiltinAttributeProvider::Writable.
Referenced by get_curve_accessor_functions(), and get_curves_accessor_functions().
|
static |
In this function all the attribute providers for a curves component are created. Most data in this function is statically allocated, because it does not change over time.
Definition at line 346 of file geometry_component_curves.cc.
References ATTR_DOMAIN_CURVE, ATTR_DOMAIN_POINT, CD_PROP_BOOL, CD_PROP_FLOAT, CD_PROP_FLOAT3, CD_PROP_INT32, CD_PROP_INT8, blender::bke::BuiltinAttributeProvider::Creatable, curves, blender::bke::BuiltinAttributeProvider::Deletable, id, blender::bke::BuiltinAttributeProvider::NonCreatable, blender::bke::BuiltinAttributeProvider::NonDeletable, tag_component_curve_types_changed(), tag_component_normals_changed(), tag_component_positions_changed(), tag_component_topology_changed(), and blender::bke::BuiltinAttributeProvider::Writable.
|
static |
IDs of the instances. They are used for consistency over multiple frames for things like motion blur. Proper stable ID data that actually helps when rendering can only be generated in some situations, so this vector is allowed to be empty, in which case the index of each instance will be used for the final ID.
Definition at line 432 of file geometry_component_instances.cc.
References ATTR_DOMAIN_INSTANCE, CD_PROP_INT32, blender::bke::CustomDataAttributes::data, id, InstancesComponent::instance_attributes(), and InstancesComponent::instances_num().
Referenced by get_instances_accessor_functions().
|
static |
In this function all the attribute providers for a mesh component are created. Most data in this function is statically allocated, because it does not change over time.
Definition at line 1135 of file geometry_component_mesh.cc.
References ATTR_DOMAIN_CORNER, ATTR_DOMAIN_EDGE, ATTR_DOMAIN_FACE, ATTR_DOMAIN_POINT, BKE_mesh_update_customdata_pointers(), CD_MEDGE, CD_MLOOPUV, CD_MPOLY, CD_MVERT, CD_PROP_BOOL, CD_PROP_FLOAT, CD_PROP_FLOAT2, CD_PROP_FLOAT3, CD_PROP_INT32, blender::bke::BuiltinAttributeProvider::Creatable, blender::bke::BuiltinAttributeProvider::Deletable, id, MAKE_CONST_CUSTOM_DATA_GETTER, MAKE_GET_ELEMENT_NUM_GETTER, MAKE_MUTABLE_CUSTOM_DATA_GETTER, mesh, blender::bke::BuiltinAttributeProvider::NonCreatable, blender::bke::BuiltinAttributeProvider::NonDeletable, normal, tag_component_positions_changed(), and blender::bke::BuiltinAttributeProvider::Writable.
Referenced by get_mesh_accessor_functions().
|
static |
In this function all the attribute providers for a point cloud component are created. Most data in this function is statically allocated, because it does not change over time.
Definition at line 112 of file geometry_component_pointcloud.cc.
References ATTR_DOMAIN_POINT, CD_PROP_FLOAT, CD_PROP_FLOAT3, CD_PROP_INT32, blender::bke::BuiltinAttributeProvider::Creatable, blender::bke::BuiltinAttributeProvider::Deletable, id, blender::bke::BuiltinAttributeProvider::NonCreatable, blender::bke::BuiltinAttributeProvider::NonDeletable, PointCloud::pdata, PointCloud::totpoint, and blender::bke::BuiltinAttributeProvider::Writable.
Referenced by get_pointcloud_accessor_functions().
|
static |
Definition at line 276 of file type_conversions.cc.
Referenced by get_implicit_type_conversions().
|
static |
Definition at line 570 of file geometry_component_curve.cc.
References BLI_assert, BLI_assert_unreachable, curve, data, blender::bke::AttributeInit::Default, blender::bke::GAttributeWriter::finish(), ListBase::first, MEM_freeN, blender::bke::AttributeInit::MoveArray, blender::GVMutableArray::set_all(), Curve::size, splines, blender::bke::AttributeInit::type, blender::bke::GAttributeWriter::varray, and varray_from_initializer().
Referenced by blender::bke::DynamicPointAttributeProvider::try_create(), and blender::bke::BuiltinPointAttributeProvider< T >::try_create().
Definition at line 210 of file curve_legacy_convert.cc.
References BKE_curve_nurbs_get_for_read().
Referenced by blender::nodes::node_geo_string_to_curves_cc::create_curve_instances(), and curve_calc_modifiers_post().
Curves * blender::bke::curve_legacy_to_curves | ( | const Curve & | curve_legacy, |
const ListBase & | nurbs_list | ||
) |
Definition at line 80 of file curve_legacy_convert.cc.
References ATTR_DOMAIN_POINT, CU_NURB_CYCLIC, curve_type_from_legacy(), curves, curves_new_nomain(), Nurb::flagu, Curves::geometry, blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), blender::MutableSpan< T >::last(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), offset, blender::threading::parallel_for(), Nurb::pntsu, positions, radii, blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::bke::SpanAttributeWriter< T >::span, Nurb::type, types, and blender::bke::CurvesGeometry::wrap().
|
static |
Definition at line 142 of file geometry_component_curves.cc.
References curves, blender::threading::parallel_for(), positions, and types.
Referenced by curve_normals_varray().
VArray< float3 > blender::bke::curve_normals_varray | ( | const CurveComponent & | component, |
const eAttrDomain | domain | ||
) |
Definition at line 209 of file geometry_component_curves.cc.
References ATTR_DOMAIN_CURVE, ATTR_DOMAIN_POINT, component(), curve_normal_point_domain(), CURVE_TYPE_POLY, curves, Curves::geometry, normals, types, and blender::bke::image::partial_update::wrap().
Referenced by blender::bke::NormalFieldInput::get_varray_for_context().
Mesh * blender::bke::curve_to_mesh_sweep | ( | const CurvesGeometry & | main, |
const CurvesGeometry & | profile, | ||
bool | fill_caps | ||
) |
Extrude all splines in the profile curve along the path of every spline in the curve input. Transfer curve attributes to the mesh.
Definition at line 628 of file curve_to_mesh_convert.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), ATTR_DOMAIN_CURVE, ATTR_DOMAIN_POINT, blender::bke::CurvesGeometry::attributes(), BKE_mesh_new_nomain(), calculate_result_offsets(), blender::bke::AttributeAccessor::contains(), copy_curve_domain_attribute_to_mesh(), copy_main_point_domain_attribute_to_mesh(), copy_profile_point_domain_attribute_to_mesh(), CURVE_TYPE_BEZIER, blender::bke::CurvesGeometry::curve_type_counts(), blender::bke::CurvesGeometry::curve_types(), blender::bke::AttributeMetaData::data_type, DEG2RADF, blender::bke::AttributeMetaData::domain, blender::bke::ResultOffsets::edge, blender::bke::CombinationInfo::edge_range, evaluated_attribute_if_necessary(), blender::bke::CurvesGeometry::evaluated_positions(), fill_mesh_positions(), fill_mesh_topology(), blender::bke::GSpanAttributeWriter::finish(), Mesh::flag, blender::bke::AttributeAccessor::for_all(), foreach_curve_combination(), get_attribute_domain_for_mesh(), get_curves_info(), blender::bke::CurvesGeometry::handle_types_left(), blender::bke::CurvesGeometry::handle_types_right(), blender::bke::CombinationInfo::i_profile, blender::Array< T, InlineBufferCapacity, Allocator >::last(), blender::bke::AttributeAccessor::lookup(), blender::bke::AttributeAccessor::lookup_or_default(), blender::bke::ResultOffsets::loop, blender::bke::CombinationInfo::loop_range, main(), blender::bke::CombinationInfo::main_cyclic, blender::bke::ResultOffsets::main_indices, blender::bke::CombinationInfo::main_points, ME_AUTOSMOOTH, Mesh::medge, mesh, mesh_attributes(), mesh_attributes_for_write(), Mesh::mloop, Mesh::mpoly, Mesh::mvert, normals, blender::bke::ResultOffsets::poly, blender::bke::CombinationInfo::poly_range, blender::bke::CombinationInfo::profile_cyclic, blender::bke::ResultOffsets::profile_indices, blender::bke::CombinationInfo::profile_points, radii, should_add_attribute_to_mesh(), blender::IndexRange::size(), blender::Span< T >::slice(), Mesh::smoothresh, blender::bke::GSpanAttributeWriter::span, src, blender::IndexRange::start(), tangents, Mesh::totedge, Mesh::totloop, Mesh::totpoly, Mesh::totvert, type, blender::GSpan::typed(), blender::bke::ResultOffsets::vert, blender::bke::CombinationInfo::vert_range, and verts.
Referenced by curve_to_wire_mesh(), and blender::nodes::node_geo_curve_to_mesh_cc::geometry_set_curve_to_mesh().
Mesh * blender::bke::curve_to_wire_mesh | ( | const CurvesGeometry & | curve | ) |
Create a loose-edge mesh based on the evaluated path of the curve's splines. Transfer curve attributes to the mesh.
Definition at line 798 of file curve_to_mesh_convert.cc.
References curve, curve_to_mesh_sweep(), and get_curve_single_vert().
Referenced by blender::nodes::node_geo_curve_to_mesh_cc::geometry_set_curve_to_mesh(), and mesh_new_from_evaluated_curve_type_object().
|
static |
Definition at line 17 of file curve_legacy_convert.cc.
References BLI_assert_unreachable, CU_BEZIER, CU_NURBS, CU_POLY, CURVE_TYPE_BEZIER, CURVE_TYPE_NURBS, CURVE_TYPE_POLY, and type.
Referenced by curve_legacy_to_curves().
|
static |
Definition at line 1064 of file curves_geometry.cc.
References ATTR_DOMAIN_POINT, ATTR_RADIUS, curves, blender::bounds::min_max(), blender::bounds::min_max_with_radii(), positions, and radii.
Referenced by blender::bke::CurvesGeometry::bounds_min_max().
Copy data from src to #dst, except the geometry data in CurvesGeometry. Typically used to copy high-level parameters when a geometry-altering operation creates a new curves data-block.
Definition at line 391 of file curves.cc.
References Curves::attributes_active_index, BLI_strdup(), blender::MutableSpan< T >::copy_from(), Curves::flag, Curves::mat, MEM_malloc_arrayN, MEM_SAFE_FREE, Curves::selection_domain, src, Curves::surface, Curves::surface_uv_map, Curves::symmetry, and Curves::totcol.
Referenced by blender::nodes::node_geo_duplicate_elements_cc::duplicate_curves(), blender::geometry::execute_realize_curve_tasks(), blender::nodes::node_geo_curve_fillet_cc::node_geo_exec(), blender::nodes::node_geo_curve_resample_cc::node_geo_exec(), blender::nodes::node_geo_curve_spline_type_cc::node_geo_exec(), and blender::nodes::node_geo_curve_subdivide_cc::node_geo_exec().
Curves * blender::bke::curves_new_nomain | ( | CurvesGeometry | curves | ) |
Definition at line 384 of file curves.cc.
References BKE_id_new_nomain(), curves, Curves::geometry, ID_CV, and blender::bke::CurvesGeometry::wrap().
Curves * blender::bke::curves_new_nomain | ( | int | points_num, |
int | curves_num | ||
) |
Definition at line 367 of file curves.cc.
References BKE_id_new_nomain(), curves, Curves::geometry, ID_CV, and blender::bke::CurvesGeometry::wrap().
Referenced by BKE_curves_data_update(), curve_eval_to_curves(), curve_legacy_to_curves(), curves_new_nomain_single(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_curves(), blender::nodes::node_geo_edge_paths_to_curves_cc::edge_paths_to_curves_convert(), blender::geometry::execute_realize_curve_tasks(), blender::nodes::node_geo_curve_fillet_cc::node_geo_exec(), blender::nodes::node_geo_curve_spline_type_cc::node_geo_exec(), blender::nodes::node_geo_curve_subdivide_cc::node_geo_exec(), blender::nodes::node_geo_mesh_to_curve_cc::node_geo_exec(), blender::geometry::resample_to_evaluated(), and blender::geometry::resample_to_uniform().
Create a new curves data-block containing a single curve with the given length and type.
Definition at line 375 of file curves.cc.
References curves, curves_new_nomain(), Curves::geometry, type, and blender::bke::CurvesGeometry::wrap().
Referenced by blender::nodes::node_geo_curve_primitive_arc_cc::create_arc_curve_from_points(), blender::nodes::node_geo_curve_primitive_arc_cc::create_arc_curve_from_radius(), blender::nodes::node_geo_curve_primitive_bezier_segment_cc::create_bezier_segment_curve(), blender::nodes::node_geo_curve_primitive_line_cc::create_direction_line_curve(), blender::nodes::node_geo_curve_primitive_circle_cc::create_point_circle_curve(), blender::nodes::node_geo_curve_primitive_line_cc::create_point_line_curve(), blender::nodes::node_geo_curve_primitive_quadratic_bezier_cc::create_quadratic_bezier_curve(), blender::nodes::node_geo_curve_primitive_circle_cc::create_radius_circle_curve(), blender::nodes::node_geo_curve_primitive_spiral_cc::create_spiral_curve(), blender::nodes::node_geo_curve_primitive_star_cc::create_star_curve(), and blender::nodes::node_geo_curve_primitive_quadrilateral_cc::node_geo_exec().
|
static |
Definition at line 246 of file attribute_access.cc.
References blender::bke::AttributeIDRef::anonymous_id(), CustomDataLayer::anonymous_id, blender::bke::AttributeIDRef::is_anonymous(), blender::bke::AttributeIDRef::name(), and CustomDataLayer::name.
Referenced by blender::bke::CustomDataAttributes::get_for_read(), blender::bke::CustomDataAttributes::get_for_write(), blender::bke::CustomDataAttributes::remove(), blender::bke::CustomDataAttributeProvider::try_create(), blender::bke::CustomDataAttributeProvider::try_delete(), blender::bke::NamedLegacyCustomDataProvider::try_delete(), blender::bke::CustomDataAttributeProvider::try_get_for_read(), blender::bke::NamedLegacyCustomDataProvider::try_get_for_read(), blender::bke::CustomDataAttributeProvider::try_get_for_write(), and blender::bke::NamedLegacyCustomDataProvider::try_get_for_write().
const blender::CPPType* blender::bke::custom_data_type_to_cpp_type | ( | const eCustomDataType | type | ) |
Definition at line 5312 of file customdata.cc.
References CD_PROP_BOOL, CD_PROP_BYTE_COLOR, CD_PROP_COLOR, CD_PROP_FLOAT, CD_PROP_FLOAT2, CD_PROP_FLOAT3, CD_PROP_INT32, CD_PROP_INT8, and type.
Referenced by blender::attribute_math::convert_to_static_type(), blender::nodes::node_geo_join_geometry_cc::fill_new_attribute(), blender::bke::CustomDataAttributes::get_for_read(), blender::bke::CustomDataAttributes::get_for_write(), blender::bke::AttributeAccessor::lookup(), blender::bke::AttributeAccessor::lookup_or_default(), blender::bke::CustomDataAttributeProvider::try_get_for_read(), blender::bke::CustomDataAttributeProvider::try_get_for_write(), and varray_from_initializer().
|
static |
Definition at line 170 of file curves_geometry.cc.
References ATTR_DOMAIN_POINT, and curves.
|
static |
Definition at line 165 of file curves_geometry.cc.
References ATTR_DOMAIN_POINT, and curves.
Referenced by get_mutable_attribute(), get_span_attribute(), and get_varray_attribute().
|
static |
Definition at line 160 of file curves_geometry.cc.
References ATTR_DOMAIN_POINT, and curves.
Referenced by add_builtin_type_custom_data_layer_from_init(), add_custom_data_layer_from_attribute_init(), blender::ed::spreadsheet::add_fields_as_extra_columns(), add_generic_custom_data_layer(), blender::nodes::node_geo_instance_on_points_cc::add_instances_from_component(), blender::nodes::node_geo_delete_geometry_cc::delete_curves_selection(), blender::nodes::node_geo_transfer_attribute_cc::IndexTransferFunction::evaluate_field(), blender::nodes::node_geo_join_geometry_cc::fill_new_attribute(), blender::nodes::node_geo_mesh_to_points_cc::geometry_set_mesh_to_points(), blender::nodes::node_geo_points_to_vertices_cc::geometry_set_points_to_vertices(), blender::ed::spreadsheet::GeometryDataSource::get_column_values(), blender::bke::CustomDataAttributes::get_for_read(), get_mutable_attribute(), get_span_attribute(), get_varray_attribute(), make_array_read_attribute(), make_array_write_attribute(), make_derived_read_attribute(), make_derived_write_attribute(), blender::nodes::node_geo_attribute_statistic_cc::node_geo_exec(), blender::nodes::node_geo_rotate_instances_cc::rotate_instances(), and blender::bke::NamedLegacyCustomDataProvider::try_get_for_read().
|
static |
Definition at line 352 of file curve_to_mesh_convert.cc.
References buffer, CURVE_TYPE_POLY, curves, and src.
Referenced by curve_to_mesh_sweep().
|
static |
Definition at line 187 of file curve_to_mesh_convert.cc.
References blender::float4x4::apply_scale(), MVert::co, copy_v3_v3(), blender::Span< T >::first(), blender::float4x4::from_normalized_axis_data(), normals, radii, and tangents.
Referenced by curve_to_mesh_sweep().
|
static |
Definition at line 28 of file curve_to_mesh_convert.cc.
References MLoop::e, MPoly::flag, MPoly::loopstart, mark_edges_sharp(), ME_EDGEDRAW, ME_EDGERENDER, ME_LOOSEEDGE, ME_SMOOTH, blender::bke::curves::segments_num(), blender::MutableSpan< T >::slice(), MPoly::totloop, and MLoop::v.
Referenced by curve_to_mesh_sweep().
Definition at line 84 of file type_conversions.cc.
References Freestyle::a, and blender::math::is_zero().
|
static |
Definition at line 96 of file type_conversions.cc.
References Freestyle::a, blender::ColorSceneLinear4f< Alpha >::encode(), and float2_to_color().
|
static |
Definition at line 92 of file type_conversions.cc.
References Freestyle::a.
Referenced by float2_to_byte_color().
Definition at line 76 of file type_conversions.cc.
References Freestyle::a.
Definition at line 72 of file type_conversions.cc.
References Freestyle::a.
|
static |
Definition at line 80 of file type_conversions.cc.
References Freestyle::a.
Definition at line 88 of file type_conversions.cc.
References Freestyle::a, and float_to_int8().
Definition at line 101 of file type_conversions.cc.
References Freestyle::a, and blender::math::is_zero().
|
static |
Definition at line 125 of file type_conversions.cc.
References Freestyle::a, blender::ColorSceneLinear4f< Alpha >::encode(), and float3_to_color().
|
static |
Definition at line 121 of file type_conversions.cc.
References Freestyle::a.
Referenced by float3_to_byte_color().
Definition at line 109 of file type_conversions.cc.
References Freestyle::a.
Definition at line 117 of file type_conversions.cc.
References Freestyle::a.
|
static |
Definition at line 113 of file type_conversions.cc.
References Freestyle::a.
Definition at line 105 of file type_conversions.cc.
References Freestyle::a, and float_to_int8().
Definition at line 54 of file type_conversions.cc.
References Freestyle::a.
|
static |
Definition at line 67 of file type_conversions.cc.
References Freestyle::a, blender::ColorSceneLinear4f< Alpha >::encode(), and float_to_color().
|
static |
Definition at line 63 of file type_conversions.cc.
References Freestyle::a.
Referenced by float_to_byte_color().
Definition at line 42 of file type_conversions.cc.
References Freestyle::a.
Definition at line 46 of file type_conversions.cc.
References Freestyle::a.
Definition at line 50 of file type_conversions.cc.
References Freestyle::a.
Definition at line 58 of file type_conversions.cc.
References Freestyle::a, blender::math::clamp(), max, and min.
Referenced by float2_to_int8(), and float3_to_int8().
|
static |
Definition at line 386 of file curve_to_mesh_convert.cc.
References blender::threading::parallel_for(), and blender::bke::ResultOffsets::total.
Referenced by curve_to_mesh_sweep().
Definition at line 76 of file pbvh.cc.
References linearrgb_to_srgb_v3_v3(), rgba_float_to_uchar(), and src.
Definition at line 83 of file pbvh.cc.
References MPropCol::color, copy_v4_v4(), and src.
Referenced by imb_savepng(), and pbvh_vertex_color_set().
|
static |
Definition at line 112 of file geometry_set_instances.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), InstanceReference::Collection, InstanceReference::collection(), InstanceReference::geometry_set(), geometry_set_collect_recursive_collection_instance(), geometry_set_collect_recursive_object(), InstanceReference::GeometrySet, GeometrySet::get_component_for_read(), handles, GeometrySet::has_instances(), InstancesComponent::instance_reference_handles(), InstancesComponent::instance_transforms(), InstanceReference::None, InstanceReference::Object, InstanceReference::object(), InstancesComponent::references(), transform(), and InstanceReference::type().
Referenced by geometry_set_collect_recursive_object(), and geometry_set_gather_instances().
|
static |
Definition at line 95 of file geometry_set_instances.cc.
References BLI_assert, Collection::children, geometry_set_collect_recursive_object(), Collection::gobject, LISTBASE_FOREACH, and transform().
Referenced by geometry_set_collect_recursive_collection_instance().
|
static |
Definition at line 78 of file geometry_set_instances.cc.
References geometry_set_collect_recursive_collection(), blender::float4x4::identity(), Collection::instance_offset, sub_v3_v3(), transform(), and blender::float4x4::values.
Referenced by geometry_set_collect_recursive().
|
static |
Definition at line 87 of file geometry_set_instances.cc.
References geometry_set_collect_recursive(), object_get_evaluated_geometry_set(), and transform().
Referenced by geometry_set_collect_recursive(), and geometry_set_collect_recursive_collection().
void blender::bke::geometry_set_gather_instances | ( | const GeometrySet & | geometry_set, |
Vector< GeometryInstanceGroup > & | r_instance_groups | ||
) |
Return flattened vector of the geometry component's recursive instances. I.e. all collection instances and object instances will be expanded into the instances of their geometry components. Even the instances in those geometry components' will be included.
Definition at line 154 of file geometry_set_instances.cc.
References geometry_set_collect_recursive(), and blender::float4x4::identity().
Referenced by blender::nodes::node_geo_boolean_cc::node_geo_exec().
|
static |
Definition at line 98 of file attribute.cc.
References BLI_assert, BLI_assert_unreachable, curves, Mesh::edit_mesh, Curves::geometry, GS, id, ID_CV, ID_ME, ID_PT, mesh, mesh_attributes_for_write(), pointcloud_attributes_for_write(), and blender::bke::CurvesGeometry::wrap().
Referenced by BKE_id_attribute_duplicate(), BKE_id_attribute_new(), and BKE_id_attribute_remove().
|
static |
Definition at line 317 of file curve_to_mesh_convert.cc.
References ATTR_DOMAIN_POINT, blender::bke::AttributeAccessor::is_builtin(), blender::bke::AttributeAccessor::lookup_meta_data(), and mesh_attributes().
Referenced by curve_to_mesh_sweep().
Definition at line 876 of file geometry_component_mesh.cc.
|
static |
Definition at line 1405 of file geometry_component_curve.cc.
References adapt_curve_attribute_domain(), blender::bke::AttributeAccessorFunctions::adapt_domain, ATTR_DOMAIN_CURVE, ATTR_DOMAIN_POINT, create_attribute_providers_for_curve(), blender::bke::AttributeAccessorFunctions::domain_size, blender::bke::AttributeAccessorFunctions::domain_supported, ELEM, CurveEval::splines(), CurveEval::total_control_point_num(), and UNUSED.
Referenced by get_curve_accessor_functions_ref().
|
static |
Definition at line 1440 of file geometry_component_curve.cc.
References get_curve_accessor_functions().
Referenced by CurveComponentLegacy::attributes(), CurveEval::attributes_for_write(), and CurveComponentLegacy::attributes_for_write().
|
static |
Definition at line 788 of file curve_to_mesh_convert.cc.
References CURVE_TYPE_POLY, and curves.
Referenced by curve_to_wire_mesh().
|
static |
Definition at line 580 of file geometry_component_curves.cc.
References blender::bke::AttributeAccessorFunctions::adapt_domain, ATTR_DOMAIN_CURVE, ATTR_DOMAIN_POINT, create_attribute_providers_for_curve(), curves, blender::bke::AttributeAccessorFunctions::domain_size, blender::bke::AttributeAccessorFunctions::domain_supported, ELEM, and UNUSED.
Referenced by get_curves_accessor_functions_ref().
|
static |
Definition at line 615 of file geometry_component_curves.cc.
References get_curves_accessor_functions().
Referenced by blender::bke::CurvesGeometry::attributes(), CurveComponent::attributes(), blender::bke::CurvesGeometry::attributes_for_write(), and CurveComponent::attributes_for_write().
|
static |
Definition at line 233 of file curve_to_mesh_convert.cc.
References main().
Referenced by curve_to_mesh_sweep().
Definition at line 420 of file geometry_component_curve.cc.
const DataTypeConversions & blender::bke::get_implicit_type_conversions | ( | ) |
Definition at line 347 of file type_conversions.cc.
References create_implicit_conversions().
Referenced by blender::bke::CustomDataAttributes::get_for_read(), blender::nodes::node_geo_store_named_attribute_cc::node_geo_exec(), try_adapt_data_type(), and blender::bke::DataTypeConversions::try_convert().
|
static |
Definition at line 474 of file geometry_component_instances.cc.
References blender::bke::AttributeAccessorFunctions::adapt_domain, ATTR_DOMAIN_INSTANCE, create_attribute_providers_for_instances(), blender::bke::AttributeAccessorFunctions::domain_size, blender::bke::AttributeAccessorFunctions::domain_supported, InstancesComponent::instances_num(), and UNUSED.
Referenced by get_instances_accessor_functions_ref().
|
static |
Definition at line 506 of file geometry_component_instances.cc.
References get_instances_accessor_functions().
Referenced by InstancesComponent::attributes(), and InstancesComponent::attributes_for_write().
|
static |
Common datatype priorities, works for compositor, shader and texture nodes alike defines priority of datatype connection based on output type (to): < 0
: never connect these types. >= 0
: priority of connection (higher values chosen first).
Definition at line 594 of file node_tree_update.cc.
References from, bNodeSocketType::idname, SOCK_BOOLEAN, SOCK_CUSTOM, SOCK_FLOAT, SOCK_INT, SOCK_RGBA, SOCK_VECTOR, STREQ, and bNodeSocketType::type.
Definition at line 866 of file geometry_component_mesh.cc.
References MLoopUV::uv.
|
static |
Definition at line 846 of file geometry_component_mesh.cc.
References MPoly::mat_nr.
|
static |
Definition at line 1268 of file geometry_component_mesh.cc.
References blender::bke::AttributeAccessorFunctions::adapt_domain, adapt_mesh_attribute_domain(), ATTR_DOMAIN_CORNER, ATTR_DOMAIN_EDGE, ATTR_DOMAIN_FACE, ATTR_DOMAIN_POINT, create_attribute_providers_for_mesh(), blender::bke::AttributeAccessorFunctions::domain_size, blender::bke::AttributeAccessorFunctions::domain_supported, ELEM, mesh, Mesh::totedge, Mesh::totloop, Mesh::totpoly, Mesh::totvert, and UNUSED.
Referenced by get_mesh_accessor_functions_ref().
|
static |
Definition at line 1307 of file geometry_component_mesh.cc.
References get_mesh_accessor_functions().
Referenced by MeshComponent::attributes(), MeshComponent::attributes_for_write(), mesh_attributes(), and mesh_attributes_for_write().
|
static |
Definition at line 209 of file curves_geometry.cc.
References blender::StringRefNull::c_str(), CD_CALLOC, cpp_type_to_custom_data_type(), curves, CustomData_add_layer_named(), CustomData_duplicate_referenced_layer_named(), data, domain_custom_data(), domain_num(), blender::MutableSpan< T >::fill(), blender::MutableSpan< T >::first(), T, and type.
|
static |
Definition at line 167 of file geometry_component_pointcloud.cc.
References blender::bke::AttributeAccessorFunctions::adapt_domain, ATTR_DOMAIN_POINT, create_attribute_providers_for_point_cloud(), blender::bke::AttributeAccessorFunctions::domain_size, blender::bke::AttributeAccessorFunctions::domain_supported, PointCloud::totpoint, and UNUSED.
Referenced by get_pointcloud_accessor_functions_ref().
|
static |
Definition at line 200 of file geometry_component_pointcloud.cc.
References get_pointcloud_accessor_functions().
Referenced by PointCloudComponent::attributes(), PointCloudComponent::attributes_for_write(), pointcloud_attributes(), and pointcloud_attributes_for_write().
|
static |
Definition at line 852 of file attribute_access.cc.
References ATTR_DOMAIN_INSTANCE, and ATTR_DOMAIN_POINT.
Referenced by blender::bke::IDAttributeFieldInput::get_varray_for_context().
Definition at line 856 of file geometry_component_mesh.cc.
References MPoly::flag, and ME_SMOOTH.
|
static |
Definition at line 193 of file curves_geometry.cc.
References blender::StringRefNull::c_str(), cpp_type_to_custom_data_type(), curves, CustomData_get_layer_named(), data, domain_custom_data(), domain_num(), T, and type.
|
static |
Definition at line 388 of file geometry_component_curve.cc.
Definition at line 380 of file geometry_component_instances.cc.
References transform().
Referenced by blender::bke::InstancePositionAttributeProvider::try_get_for_write().
|
static |
Definition at line 176 of file curves_geometry.cc.
References blender::StringRefNull::c_str(), cpp_type_to_custom_data_type(), curves, CustomData_get_layer_named(), data, domain_custom_data(), domain_num(), blender::VArray< T >::ForSingle(), blender::VArray< T >::ForSpan(), T, and type.
Definition at line 828 of file geometry_component_mesh.cc.
References MVert::co.
|
static |
Definition at line 31 of file curve_legacy_convert.cc.
References BEZIER_HANDLE_ALIGN, BEZIER_HANDLE_AUTO, BEZIER_HANDLE_FREE, BEZIER_HANDLE_VECTOR, BLI_assert_unreachable, HD_ALIGN, HD_ALIGN_DOUBLESIDE, HD_AUTO, HD_AUTO_ANIM, HD_FREE, and HD_VECT.
Definition at line 160 of file type_conversions.cc.
References Freestyle::a.
|
static |
Definition at line 184 of file type_conversions.cc.
References Freestyle::a, blender::ColorSceneLinear4f< Alpha >::encode(), and int8_to_color().
|
static |
Definition at line 180 of file type_conversions.cc.
References Freestyle::a.
Referenced by int8_to_byte_color().
Definition at line 168 of file type_conversions.cc.
References Freestyle::a.
Definition at line 172 of file type_conversions.cc.
References Freestyle::a.
Definition at line 176 of file type_conversions.cc.
References Freestyle::a.
|
static |
Definition at line 164 of file type_conversions.cc.
References Freestyle::a.
Definition at line 130 of file type_conversions.cc.
References Freestyle::a.
|
static |
Definition at line 155 of file type_conversions.cc.
References Freestyle::a, blender::ColorSceneLinear4f< Alpha >::encode(), and int_to_color().
|
static |
Definition at line 151 of file type_conversions.cc.
References Freestyle::a.
Referenced by int_to_byte_color().
Definition at line 139 of file type_conversions.cc.
References Freestyle::a.
Definition at line 143 of file type_conversions.cc.
References Freestyle::a.
Definition at line 147 of file type_conversions.cc.
References Freestyle::a.
Definition at line 134 of file type_conversions.cc.
References Freestyle::a, blender::math::clamp(), max, and min.
Referenced by color_to_int8().
|
static |
Definition at line 64 of file curve_legacy_convert.cc.
References BLI_assert_unreachable, CU_NURB_BEZIER, CU_NURB_ENDPOINT, NURBS_KNOT_MODE_BEZIER, NURBS_KNOT_MODE_ENDPOINT, NURBS_KNOT_MODE_ENDPOINT_BEZIER, and NURBS_KNOT_MODE_NORMAL.
|
static |
Definition at line 1359 of file curves_geometry.cc.
References CustomDataLayer::name, type, and CustomDataLayer::type.
Referenced by blender::bke::CurvesGeometry::reverse_curves().
|
static |
Definition at line 124 of file geometry_component_curve.cc.
References blender::Span< T >::begin(), blender::Span< T >::end(), and spline_index.
Referenced by blender::bke::VArray_For_SplineToPoint< T >::get(), blender::bke::VArrayImpl_For_SplinePoints< T >::get(), blender::bke::VArrayImpl_For_SplinePosition::get(), blender::bke::VArrayImpl_For_BezierHandles::get(), blender::bke::VArrayImpl_For_SplinePosition::set(), blender::bke::VArrayImpl_For_BezierHandles::set(), and blender::bke::VArrayImpl_For_SplinePoints< T >::set().
GVArray blender::bke::make_array_read_attribute | ( | const void * | data, |
const int | domain_num | ||
) |
Definition at line 204 of file attribute_access_intern.hh.
References data, domain_num(), blender::VArray< T >::ForSpan(), and T.
GVMutableArray blender::bke::make_array_write_attribute | ( | void * | data, |
const int | domain_num | ||
) |
Definition at line 209 of file attribute_access_intern.hh.
References data, domain_num(), blender::VMutableArray< T >::ForSpan(), and T.
Definition at line 433 of file geometry_component_curve.cc.
References curve.
Referenced by create_attribute_providers_for_curve().
|
static |
Definition at line 438 of file geometry_component_curve.cc.
References curve.
Referenced by create_attribute_providers_for_curve().
|
static |
Definition at line 812 of file geometry_component_mesh.cc.
References data, and domain_num().
|
static |
Definition at line 822 of file geometry_component_mesh.cc.
References data, and domain_num().
Definition at line 409 of file geometry_component_curve.cc.
References curve.
Referenced by create_attribute_providers_for_curve().
|
static |
Definition at line 414 of file geometry_component_curve.cc.
References curve.
Referenced by create_attribute_providers_for_curve().
|
static |
Definition at line 167 of file curve_to_mesh_convert.cc.
References mark_edges_sharp(), blender::bke::curves::bezier::point_is_sharp(), and blender::MutableSpan< T >::slice().
|
static |
Definition at line 21 of file curve_to_mesh_convert.cc.
References ME_SHARP.
Referenced by fill_mesh_topology(), and mark_bezier_vector_edges_sharp().
AttributeAccessor blender::bke::mesh_attributes | ( | const Mesh & | mesh | ) |
Definition at line 1313 of file geometry_component_mesh.cc.
References get_mesh_accessor_functions_ref(), and mesh.
Referenced by blender::ed::spreadsheet::GeometryDataSource::apply_selection_filter(), BKE_pointcloud_from_mesh(), blender::geometry::create_curve_from_vert_indices(), curve_to_mesh_sweep(), blender::nodes::node_geo_delete_geometry_cc::do_mesh_separation(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_faces(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_points_mesh(), blender::ed::sculpt_paint::AddOperationExecutor::execute(), blender::ed::sculpt_paint::DensityAddOperationExecutor::execute(), blender::ed::sculpt_paint::SlideOperationExecutor::execute(), face_corner_color_equalize_vertices(), get_attribute_domain_for_mesh(), blender::nodes::node_geo_extrude_mesh_cc::get_orig_index_layer(), get_selected_indices(), blender::nodes::node_geo_deform_curves_on_surface_cc::node_geo_exec(), blender::geometry::preprocess_meshes(), blender::nodes::node_geo_distribute_points_on_faces_cc::propagate_existing_attributes(), should_add_attribute_to_mesh(), blender::ed::curves::snap_curves_to_surface::snap_curves_to_surface_exec_object(), and blender::io::obj::OBJWriter::write_vertex_coords().
MutableAttributeAccessor blender::bke::mesh_attributes_for_write | ( | Mesh & | mesh | ) |
Definition at line 1318 of file geometry_component_mesh.cc.
References get_mesh_accessor_functions_ref(), and mesh.
Referenced by BKE_mesh_new_from_object_to_bmain(), blender::nodes::calculate_cone_uvs(), blender::nodes::calculate_selection_outputs(), blender::nodes::node_geo_mesh_primitive_uv_sphere_cc::calculate_sphere_uvs(), blender::geometry::calculate_uvs(), blender::nodes::calculate_uvs(), curve_to_mesh_sweep(), blender::nodes::node_geo_delete_geometry_cc::do_mesh_separation(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_faces(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_points_mesh(), ED_geometry_attribute_convert(), blender::geometry::execute_realize_mesh_tasks(), blender::ed::geometry::geometry_attribute_convert_exec(), get_attribute_accessor_for_write(), mesh_calc_modifiers(), modifier_apply_obdata(), blender::nodes::node_geo_boolean_cc::node_geo_exec(), object_convert_exec(), transform_active_color(), and vertex_paint_from_weight().
VArray< float3 > blender::bke::mesh_normals_varray | ( | const MeshComponent & | mesh_component, |
const Mesh & | mesh, | ||
const IndexMask | mask, | ||
eAttrDomain | domain | ||
) |
Definition at line 118 of file geometry_component_mesh.cc.
References ATTR_DOMAIN_CORNER, ATTR_DOMAIN_EDGE, ATTR_DOMAIN_FACE, ATTR_DOMAIN_POINT, MeshComponent::attributes(), BKE_mesh_poly_normals_ensure(), BKE_mesh_vertex_normals_ensure(), blender::VArray< T >::ForContainer(), blender::VArray< T >::ForSpan(), blender::math::interpolate(), mask(), Mesh::medge, mesh, blender::math::normalize(), Mesh::totedge, Mesh::totpoly, and Mesh::totvert.
Referenced by blender::bke::NormalFieldInput::get_varray_for_context().
|
static |
Definition at line 113 of file curves_geometry.cc.
References CurvesGeometry::curve_data, CurvesGeometry::curve_num, CurvesGeometry::curve_offsets, CustomData_free(), MEM_SAFE_FREE, CurvesGeometry::point_data, CurvesGeometry::point_num, CurvesGeometry::runtime, src, and swap().
Referenced by blender::bke::CurvesGeometry::CurvesGeometry(), and blender::bke::CurvesGeometry::operator=().
bNode* blender::bke::node_copy | ( | bNodeTree * | dst_tree, |
const bNode & | src_node, | ||
const int | flag, | ||
const bool | unique_name | ||
) |
Definition at line 2274 of file node.cc.
References node_copy_with_mapping(), and unique_name().
Referenced by ntree_shader_copy_branch().
bNode* blender::bke::node_copy_with_mapping | ( | bNodeTree * | dst_tree, |
const bNode & | node_src, | ||
const int | flag, | ||
const bool | unique_name, | ||
Map< const bNodeSocket *, bNodeSocket * > & | socket_map | ||
) |
Definition at line 2198 of file node.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), BKE_ntree_update_tag_node_new(), BLI_addtail(), BLI_listbase_clear(), bNodeType::copyfunc, bNodeType::copyfunc_api, bNodeLink::fromnode, bNodeLink::fromsock, bNode::id, id_us_plus(), IDP_CopyProperty_ex(), bNode::inputs, bNode::internal_links, LIB_ID_CREATE_NO_MAIN, LIB_ID_CREATE_NO_USER_REFCOUNT, LISTBASE_FOREACH, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup(), MEM_dupallocN, MEM_mallocN, node_socket_copy(), nodeDeclarationEnsure(), bNodeTree::nodes, nodeUniqueName(), bNode::outputs, bNode::prop, ptr, RNA_pointer_create(), bNode::runtime, bNodeLink::tonode, bNodeLink::tosock, bNode::typeinfo, and unique_name().
Referenced by blender::ed::space_node::node_clipboard_copy_exec(), blender::ed::space_node::node_clipboard_paste_exec(), node_copy(), blender::ed::space_node::node_duplicate_exec(), blender::ed::space_node::node_group_separate_selected(), and ntree_copy_data().
bNodeSocket* blender::bke::node_find_enabled_input_socket | ( | bNode & | node, |
StringRef | name | ||
) |
Definition at line 1477 of file node.cc.
References node, node_find_enabled_socket(), and SOCK_IN.
Referenced by blender::ed::space_node::attribute_search_exec_fn().
bNodeSocket* blender::bke::node_find_enabled_output_socket | ( | bNode & | node, |
StringRef | name | ||
) |
Definition at line 1482 of file node.cc.
References node, node_find_enabled_socket(), and SOCK_OUT.
Referenced by blender::ed::space_node::attribute_search_exec_fn().
bNodeSocket* blender::bke::node_find_enabled_socket | ( | bNode & | node, |
const eNodeSocketInOut | in_out, | ||
const StringRef | name | ||
) |
Definition at line 1464 of file node.cc.
References LISTBASE_FOREACH, node, SOCK_IN, and SOCK_UNAVAIL.
Referenced by blender::nodes::LinkSearchOpParams::connect_available_socket(), node_find_enabled_input_socket(), and node_find_enabled_output_socket().
|
static |
Definition at line 51 of file curve_legacy_convert.cc.
References BLI_assert_unreachable, CU_TWIST_MINIMUM, CU_TWIST_TANGENT, CU_TWIST_Z_UP, NORMAL_MODE_MINIMUM_TWIST, and NORMAL_MODE_Z_UP.
GeometrySet blender::bke::object_get_evaluated_geometry_set | ( | const Object & | object | ) |
Definition at line 39 of file geometry_set_instances.cc.
References add_final_mesh_as_geometry_component(), InstancesComponent::add_instance(), InstancesComponent::add_reference(), GeometrySet::get_component_for_write(), GeometrySet::has_mesh(), blender::float4x4::identity(), OB_EMPTY, OB_MESH, OB_MODE_EDIT, and type.
Referenced by InstancesComponent::ensure_geometry_instances(), blender::geometry::foreach_geometry_in_reference(), InstancesComponent::foreach_referenced_geometry(), geometry_set_collect_recursive_object(), and blender::nodes::node_geo_object_info_cc::node_geo_exec().
|
constexpr |
Definition at line 29 of file BKE_curves.hh.
References BLI_assert, offset, and blender::Span< T >::size().
Referenced by blender::bke::CurvesGeometry::evaluated_points_for_curve(), and blender::bke::curves::catmull_rom::interpolate_to_evaluated().
|
static |
Definition at line 106 of file asset_library_service.cc.
References blender::bke::AssetLibraryService::destroy().
Referenced by blender::bke::AssetLibraryService::app_handler_register().
std::ostream & blender::bke::operator<< | ( | std::ostream & | stream, |
const AssetCatalogPath & | path_to_append | ||
) |
Output the path as string.
Definition at line 98 of file asset_catalog_path.cc.
std::ostream& blender::bke::operator<< | ( | std::ostream & | stream, |
const AttributeIDRef & | attribute_id | ||
) |
Definition at line 39 of file attribute_access.cc.
|
inline |
Definition at line 784 of file BKE_attribute.hh.
Referenced by ccl_try_align().
|
static |
Definition at line 89 of file pbvh.cc.
References add_v4_v4(), ATTR_DOMAIN_CORNER, PBVH::color_domain, PBVH::color_layer, MeshElemMap::count, count, CustomDataLayer::data, MeshElemMap::indices, MPoly::loopstart, PBVH::mloop, PBVH::mpoly, mul_v4_fl(), PBVH::pmap, T, to_float(), MPoly::totloop, v, and zero_v4().
|
static |
Definition at line 122 of file pbvh.cc.
References ATTR_DOMAIN_CORNER, color, PBVH::color_domain, PBVH::color_layer, MeshElemMap::count, CustomDataLayer::data, from_float(), MeshElemMap::indices, MPoly::loopstart, PBVH::mloop, PBVH::mpoly, PBVH::pmap, T, MPoly::totloop, and v.
|
static |
Individual spans in data may be empty if that spline contains no data for the attribute.
Definition at line 459 of file geometry_component_curve.cc.
References blender::MutableSpan< T >::copy_from(), data, blender::MutableSpan< T >::fill(), blender::Span< T >::last(), mask(), offset, blender::MutableSpan< T >::slice(), spline_index, src, and T.
Referenced by blender::bke::VArrayImpl_For_SplinePosition::materialize(), blender::bke::VArrayImpl_For_BezierHandles::materialize(), and blender::bke::VArrayImpl_For_SplinePoints< T >::materialize().
|
static |
Individual spans in data may be empty if that spline contains no data for the attribute.
Definition at line 504 of file geometry_component_curve.cc.
References blender::MutableSpan< T >::data(), data, blender::Span< T >::last(), mask(), offset, spline_index, src, T, blender::uninitialized_copy_n(), and blender::uninitialized_fill_n().
Referenced by blender::bke::VArrayImpl_For_SplinePosition::materialize_to_uninitialized(), blender::bke::VArrayImpl_For_BezierHandles::materialize_to_uninitialized(), and blender::bke::VArrayImpl_For_SplinePoints< T >::materialize_to_uninitialized().
VArray<T> blender::bke::point_data_varray | ( | Array< MutableSpan< T >> | spans, |
Array< int > | offsets | ||
) |
Definition at line 686 of file geometry_component_curve.cc.
Referenced by blender::bke::BuiltinPointAttributeProvider< T >::try_get_for_read(), and blender::bke::DynamicPointAttributeProvider::try_get_for_read().
VMutableArray<T> blender::bke::point_data_varray_mutable | ( | Array< MutableSpan< T >> | spans, |
Array< int > | offsets | ||
) |
Definition at line 693 of file geometry_component_curve.cc.
Referenced by blender::bke::BuiltinPointAttributeProvider< T >::try_get_for_write(), and blender::bke::DynamicPointAttributeProvider::try_get_for_write().
AttributeAccessor blender::bke::pointcloud_attributes | ( | const PointCloud & | pointcloud | ) |
Definition at line 206 of file geometry_component_pointcloud.cc.
References get_pointcloud_accessor_functions_ref().
Referenced by BKE_bvhtree_from_pointcloud_get(), blender::nodes::node_geo_distribute_points_on_faces_cc::compute_attribute_outputs(), blender::nodes::node_geo_mesh_to_points_cc::geometry_set_mesh_to_points(), point_cloud_bounds(), blender::geometry::point_merge_by_distance(), blender::geometry::preprocess_pointclouds(), and blender::nodes::node_geo_delete_geometry_cc::separate_point_cloud_selection().
MutableAttributeAccessor blender::bke::pointcloud_attributes_for_write | ( | PointCloud & | pointcloud | ) |
Definition at line 211 of file geometry_component_pointcloud.cc.
References get_pointcloud_accessor_functions_ref().
Referenced by BKE_pointcloud_from_mesh(), blender::nodes::node_geo_instances_to_points_cc::convert_instances_to_points(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_points_pointcloud(), blender::geometry::execute_realize_pointcloud_tasks(), blender::nodes::node_geo_mesh_to_points_cc::geometry_set_mesh_to_points(), get_attribute_accessor_for_write(), blender::nodes::node_geo_distribute_points_on_faces_cc::point_distribution_calculate(), blender::geometry::point_merge_by_distance(), pointcloud_random(), blender::nodes::node_geo_delete_geometry_cc::separate_point_cloud_selection(), blender::nodes::transform_pointcloud(), and blender::nodes::translate_pointcloud().
|
static |
Definition at line 625 of file geometry_component_curve.cc.
References curve.
Referenced by blender::bke::BuiltinPointAttributeProvider< T >::try_delete(), and blender::bke::DynamicPointAttributeProvider::try_delete().
Vector< AttributeTransferData > blender::bke::retrieve_attributes_for_transfer | ( | const bke::AttributeAccessor | src_attributes, |
bke::MutableAttributeAccessor | dst_attributes, | ||
eAttrDomainMask | domain_mask, | ||
const Set< std::string > & | skip = {} |
||
) |
Retrieve attribute arrays and writers for attributes that should be transferred between data-blocks of the same type.
Definition at line 1082 of file attribute_access.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), ATTR_DOMAIN_AS_MASK, BLI_assert, blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::bke::AttributeMetaData::data_type, blender::bke::AttributeMetaData::domain, blender::bke::AttributeAccessor::for_all(), if(), blender::bke::AttributeAccessor::lookup(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), and src.
Referenced by copy_with_removed_points(), and blender::geometry::subdivide_curves().
|
static |
Definition at line 1324 of file curves_geometry.cc.
References blender::IndexMask::index_range(), and blender::threading::parallel_for().
|
static |
Definition at line 1336 of file curves_geometry.cc.
References blender::IndexMask::index_range(), and blender::threading::parallel_for().
Referenced by blender::bke::CurvesGeometry::reverse_curves().
|
static |
Definition at line 756 of file curves_geometry.cc.
References blender::MutableSpan< T >::index_range(), and blender::math::rotate_direction_around_axis().
Referenced by blender::bke::CurvesGeometry::evaluated_normals().
Definition at line 881 of file geometry_component_mesh.cc.
References round_fl_to_uchar_clamp().
Definition at line 425 of file geometry_component_curve.cc.
Definition at line 871 of file geometry_component_mesh.cc.
References copy_v2_v2(), and MLoopUV::uv.
Definition at line 851 of file geometry_component_mesh.cc.
References blender::math::clamp(), and MPoly::mat_nr.
Definition at line 861 of file geometry_component_mesh.cc.
References MPoly::flag, ME_SMOOTH, and SET_FLAG_FROM_TEST.
Definition at line 399 of file geometry_component_curve.cc.
References max.
|
static |
Definition at line 385 of file geometry_component_instances.cc.
References copy_v3_v3(), and transform().
Referenced by blender::bke::InstancePositionAttributeProvider::try_get_for_write().
Definition at line 833 of file geometry_component_mesh.cc.
References MVert::co, and copy_v3_v3().
|
static |
Definition at line 333 of file curve_to_mesh_convert.cc.
References blender::bke::AttributeAccessor::is_builtin(), and mesh_attributes().
Referenced by curve_to_mesh_sweep().
Definition at line 838 of file geometry_component_mesh.cc.
References BKE_mesh_tag_coords_changed(), and mesh.
Referenced by create_attribute_providers_for_curve(), and create_attribute_providers_for_mesh().
Definition at line 64 of file pbvh.cc.
References rgba_uchar_to_float(), src, and srgb_to_linearrgb_v3_v3().
Definition at line 69 of file pbvh.cc.
References copy_v4_v4(), and src.
Referenced by imb_loadpng(), and pbvh_vertex_color_get().
|
inline |
Definition at line 47 of file pbvh.cc.
References BLI_assert_unreachable, CD_PROP_BYTE_COLOR, CD_PROP_COLOR, and type.
Referenced by BKE_pbvh_store_colors(), BKE_pbvh_store_colors_vertex(), BKE_pbvh_swap_colors(), BKE_pbvh_vertex_color_get(), and BKE_pbvh_vertex_color_set().
|
static |
Definition at line 1000 of file curves_geometry.cc.
References blender::threading::parallel_for(), and positions.
Referenced by blender::bke::CurvesGeometry::transform().
|
static |
Definition at line 991 of file curves_geometry.cc.
References blender::threading::parallel_for(), and positions.
Referenced by blender::bke::CurvesGeometry::translate().
|
static |
Definition at line 800 of file attribute_access.cc.
References get_implicit_type_conversions(), blender::gpu::shader::to_type(), and blender::bke::DataTypeConversions::try_convert().
Referenced by blender::bke::AttributeAccessor::lookup().
|
static |
Definition at line 545 of file geometry_component_curve.cc.
References BLI_assert_unreachable, custom_data_type_to_cpp_type(), data, blender::bke::AttributeInit::Default, blender::GVArray::ForSpan(), blender::bke::AttributeInit::MoveArray, splines, blender::bke::AttributeInit::type, and blender::bke::AttributeInit::VArray.
Referenced by create_point_attribute().
|
static |
Definition at line 28 of file curves_geometry.cc.
Referenced by blender::bke::CurvesGeometry::curve_types(), and blender::bke::CurvesGeometry::curve_types_for_write().
|
static |
Definition at line 29 of file curves_geometry.cc.
Referenced by blender::bke::CurvesGeometry::cyclic(), and blender::bke::CurvesGeometry::cyclic_for_write().
|
static |
Definition at line 34 of file curves_geometry.cc.
Referenced by blender::bke::CurvesGeometry::handle_positions_left(), blender::bke::CurvesGeometry::handle_positions_left_for_write(), blender::bke::CurvesGeometry::remove_attributes_based_on_types(), and blender::bke::CurvesGeometry::reverse_curves().
|
static |
Definition at line 35 of file curves_geometry.cc.
Referenced by blender::bke::CurvesGeometry::handle_positions_right(), blender::bke::CurvesGeometry::handle_positions_right_for_write(), blender::bke::CurvesGeometry::remove_attributes_based_on_types(), and blender::bke::CurvesGeometry::reverse_curves().
|
static |
|
static |
|
static |
Definition at line 31 of file curves_geometry.cc.
Referenced by blender::bke::CurvesGeometry::normal_mode(), and blender::bke::CurvesGeometry::normal_mode_for_write().
|
static |
Definition at line 38 of file curves_geometry.cc.
Referenced by blender::bke::CurvesGeometry::nurbs_knots_modes(), blender::bke::CurvesGeometry::nurbs_knots_modes_for_write(), and blender::bke::CurvesGeometry::remove_attributes_based_on_types().
|
static |
Definition at line 36 of file curves_geometry.cc.
Referenced by blender::bke::CurvesGeometry::nurbs_orders(), blender::bke::CurvesGeometry::nurbs_orders_for_write(), and blender::bke::CurvesGeometry::remove_attributes_based_on_types().
|
static |
Definition at line 37 of file curves_geometry.cc.
Referenced by blender::bke::CurvesGeometry::nurbs_weights(), blender::bke::CurvesGeometry::nurbs_weights_for_write(), and blender::bke::CurvesGeometry::remove_attributes_based_on_types().
|
static |
Definition at line 25 of file curves_geometry.cc.
Referenced by blender::bke::CurvesGeometry::CurvesGeometry().
|
static |
Definition at line 26 of file curves_geometry.cc.
Referenced by curves_bounds().
|
static |
Definition at line 30 of file curves_geometry.cc.
Referenced by blender::bke::CurvesGeometry::remove_attributes_based_on_types(), blender::bke::CurvesGeometry::resolution(), and blender::bke::CurvesGeometry::resolution_for_write().
|
static |
Definition at line 40 of file curves_geometry.cc.
Referenced by blender::bke::CurvesGeometry::selection_curve_float(), and blender::bke::CurvesGeometry::selection_curve_float_for_write().
|
static |
Definition at line 39 of file curves_geometry.cc.
Referenced by blender::bke::CurvesGeometry::selection_point_float(), and blender::bke::CurvesGeometry::selection_point_float_for_write().
|
static |
Definition at line 41 of file curves_geometry.cc.
Referenced by blender::bke::CurvesGeometry::surface_uv_coords(), and blender::bke::CurvesGeometry::surface_uv_coords_for_write().
|
static |
Definition at line 27 of file curves_geometry.cc.
Referenced by blender::bke::CurvesGeometry::tilt(), and blender::bke::CurvesGeometry::tilt_for_write().
const char * blender::bke::no_procedural_access_message |
Definition at line 54 of file attribute_access.cc.
Referenced by blender::nodes::node_geo_input_named_attribute_cc::node_geo_exec(), blender::nodes::node_geo_remove_attribute_cc::node_geo_exec(), and blender::nodes::node_geo_store_named_attribute_cc::node_geo_exec().