|
Blender
V2.93
|
Namespaces | |
| calc_edges | |
| cryptomatte | |
| tests | |
Classes | |
| class | ReadAttribute |
| class | WriteAttribute |
| class | TypedReadAttribute |
| class | TypedWriteAttribute |
| struct | GeometryInstanceGroup |
| struct | AttributeKind |
| class | PersistentDataHandle |
| class | PersistentIDHandle |
| class | PersistentObjectHandle |
| class | PersistentCollectionHandle |
| class | PersistentDataHandleMap |
| struct | VolumeToMeshResolution |
| class | TemporaryWriteAttribute |
| class | ConvertedReadAttribute |
| class | ConstantReadAttribute |
| class | ArrayReadAttribute |
| class | OwnedArrayReadAttribute |
| class | DerivedArrayReadAttribute |
| class | ArrayWriteAttribute |
| class | DerivedArrayWriteAttribute |
| struct | CustomDataAccessInfo |
| class | BuiltinAttributeProvider |
| class | DynamicAttributesProvider |
| class | CustomDataAttributeProvider |
| class | NamedLegacyCustomDataProvider |
| class | BuiltinCustomDataLayerProvider |
| class | ComponentAttributeProviders |
| class | VertexWeightWriteAttribute |
| class | VertexWeightReadAttribute |
| class | VertexGroupsAttributeProvider |
| class | NormalAttributeProvider |
Typedefs | |
| using | ReadAttributePtr = std::unique_ptr< ReadAttribute > |
| using | WriteAttributePtr = std::unique_ptr< WriteAttribute > |
| using | BooleanReadAttribute = TypedReadAttribute< bool > |
| using | FloatReadAttribute = TypedReadAttribute< float > |
| using | Float2ReadAttribute = TypedReadAttribute< float2 > |
| using | Float3ReadAttribute = TypedReadAttribute< float3 > |
| using | Int32ReadAttribute = TypedReadAttribute< int > |
| using | Color4fReadAttribute = TypedReadAttribute< Color4f > |
| using | BooleanWriteAttribute = TypedWriteAttribute< bool > |
| using | FloatWriteAttribute = TypedWriteAttribute< float > |
| using | Float2WriteAttribute = TypedWriteAttribute< float2 > |
| using | Float3WriteAttribute = TypedWriteAttribute< float3 > |
| using | Int32WriteAttribute = TypedWriteAttribute< int > |
| using | Color4fWriteAttribute = TypedWriteAttribute< Color4f > |
| using blender::bke::BooleanReadAttribute = typedef TypedReadAttribute<bool> |
Definition at line 305 of file BKE_attribute_access.hh.
| using blender::bke::BooleanWriteAttribute = typedef TypedWriteAttribute<bool> |
Definition at line 311 of file BKE_attribute_access.hh.
| using blender::bke::Color4fReadAttribute = typedef TypedReadAttribute<Color4f> |
Definition at line 310 of file BKE_attribute_access.hh.
| using blender::bke::Color4fWriteAttribute = typedef TypedWriteAttribute<Color4f> |
Definition at line 316 of file BKE_attribute_access.hh.
| using blender::bke::Float2ReadAttribute = typedef TypedReadAttribute<float2> |
Definition at line 307 of file BKE_attribute_access.hh.
| using blender::bke::Float2WriteAttribute = typedef TypedWriteAttribute<float2> |
Definition at line 313 of file BKE_attribute_access.hh.
| using blender::bke::Float3ReadAttribute = typedef TypedReadAttribute<float3> |
Definition at line 308 of file BKE_attribute_access.hh.
| using blender::bke::Float3WriteAttribute = typedef TypedWriteAttribute<float3> |
Definition at line 314 of file BKE_attribute_access.hh.
| using blender::bke::FloatReadAttribute = typedef TypedReadAttribute<float> |
Definition at line 306 of file BKE_attribute_access.hh.
| using blender::bke::FloatWriteAttribute = typedef TypedWriteAttribute<float> |
Definition at line 312 of file BKE_attribute_access.hh.
| using blender::bke::Int32ReadAttribute = typedef TypedReadAttribute<int> |
Definition at line 309 of file BKE_attribute_access.hh.
| using blender::bke::Int32WriteAttribute = typedef TypedWriteAttribute<int> |
Definition at line 315 of file BKE_attribute_access.hh.
| using blender::bke::ReadAttributePtr = typedef std::unique_ptr<ReadAttribute> |
Definition at line 205 of file BKE_attribute_access.hh.
| using blender::bke::WriteAttributePtr = typedef std::unique_ptr<WriteAttribute> |
Definition at line 206 of file BKE_attribute_access.hh.
|
static |
Definition at line 335 of file geometry_component_mesh.cc.
References ATTR_DOMAIN_POINT, blender::attribute_math::convert_to_static_type(), mesh, T, and Mesh::totedge.
Referenced by MeshComponent::attribute_try_adapt_domain().
|
static |
Definition at line 312 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 294 of file geometry_component_mesh.cc.
References ATTR_DOMAIN_POINT, blender::attribute_math::convert_to_static_type(), mesh, T, and Mesh::totpoly.
Referenced by MeshComponent::attribute_try_adapt_domain().
|
static |
Definition at line 276 of file geometry_component_mesh.cc.
References BLI_assert, MPoly::loopstart, mesh, Mesh::mpoly, blender::MutableSpan< T >::size(), T, MPoly::totloop, and Mesh::totpoly.
|
static |
Definition at line 219 of file geometry_component_mesh.cc.
References ATTR_DOMAIN_POINT, blender::attribute_math::convert_to_static_type(), mesh, T, and Mesh::totvert.
Referenced by MeshComponent::attribute_try_adapt_domain().
|
static |
Definition at line 203 of file geometry_component_mesh.cc.
References BLI_assert, mesh, Mesh::mloop, blender::MutableSpan< T >::size(), T, Mesh::totloop, Mesh::totvert, and MLoop::v.
|
static |
Definition at line 561 of file geometry_component_mesh.cc.
References ATTR_DOMAIN_POINT, blender::attribute_math::convert_to_static_type(), mesh, T, and Mesh::totloop.
Referenced by MeshComponent::attribute_try_adapt_domain().
| void blender::bke::adapt_mesh_domain_edge_to_corner_impl | ( | const Mesh & | mesh, |
| const Span< T > | old_values, | ||
| MutableSpan< T > | r_values | ||
| ) |
Definition at line 538 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 637 of file geometry_component_mesh.cc.
References ATTR_DOMAIN_POINT, blender::attribute_math::convert_to_static_type(), mesh, T, and Mesh::totpoly.
Referenced by MeshComponent::attribute_try_adapt_domain().
|
static |
Definition at line 619 of file geometry_component_mesh.cc.
References BLI_assert, MLoop::e, MPoly::loopstart, mesh, Mesh::mloop, Mesh::mpoly, blender::MutableSpan< T >::size(), MPoly::totloop, and Mesh::totpoly.
|
static |
Definition at line 596 of file geometry_component_mesh.cc.
References ATTR_DOMAIN_POINT, blender::attribute_math::convert_to_static_type(), mesh, T, and Mesh::totvert.
Referenced by MeshComponent::attribute_try_adapt_domain().
|
static |
Definition at line 579 of file geometry_component_mesh.cc.
References BLI_assert, Mesh::medge, mesh, blender::MutableSpan< T >::size(), T, Mesh::totedge, Mesh::totvert, MEdge::v1, and MEdge::v2.
|
static |
Definition at line 404 of file geometry_component_mesh.cc.
References ATTR_DOMAIN_POINT, blender::attribute_math::convert_to_static_type(), mesh, T, and Mesh::totloop.
Referenced by MeshComponent::attribute_try_adapt_domain().
| void blender::bke::adapt_mesh_domain_face_to_corner_impl | ( | const Mesh & | mesh, |
| const Span< T > | old_values, | ||
| MutableSpan< T > | r_values | ||
| ) |
Definition at line 391 of file geometry_component_mesh.cc.
References BLI_assert, blender::MutableSpan< T >::fill(), MPoly::loopstart, mesh, Mesh::mpoly, blender::MutableSpan< T >::size(), blender::MutableSpan< T >::slice(), Mesh::totloop, MPoly::totloop, and Mesh::totpoly.
|
static |
Definition at line 440 of file geometry_component_mesh.cc.
References ATTR_DOMAIN_POINT, blender::attribute_math::convert_to_static_type(), mesh, T, and Mesh::totedge.
Referenced by MeshComponent::attribute_try_adapt_domain().
| void blender::bke::adapt_mesh_domain_face_to_edge_impl | ( | const Mesh & | mesh, |
| const Span< T > | old_values, | ||
| MutableSpan< T > | r_values | ||
| ) |
Definition at line 422 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 373 of file geometry_component_mesh.cc.
References ATTR_DOMAIN_POINT, blender::attribute_math::convert_to_static_type(), mesh, T, and Mesh::totvert.
Referenced by MeshComponent::attribute_try_adapt_domain().
| void blender::bke::adapt_mesh_domain_face_to_point_impl | ( | const Mesh & | mesh, |
| Span< T > | old_values, | ||
| MutableSpan< T > | r_values | ||
| ) |
Definition at line 353 of file geometry_component_mesh.cc.
References BLI_assert, MPoly::loopstart, mesh, Mesh::mloop, Mesh::mpoly, blender::MutableSpan< T >::size(), T, MPoly::totloop, Mesh::totpoly, Mesh::totvert, and MLoop::v.
|
static |
Definition at line 251 of file geometry_component_mesh.cc.
References ATTR_DOMAIN_CORNER, blender::attribute_math::convert_to_static_type(), mesh, T, and Mesh::totloop.
Referenced by MeshComponent::attribute_try_adapt_domain().
|
static |
Definition at line 239 of file geometry_component_mesh.cc.
References BLI_assert, mesh, Mesh::mloop, blender::MutableSpan< T >::size(), Mesh::totloop, and MLoop::v.
|
static |
Definition at line 520 of file geometry_component_mesh.cc.
References ATTR_DOMAIN_POINT, blender::attribute_math::convert_to_static_type(), mesh, T, and Mesh::totedge.
Referenced by MeshComponent::attribute_try_adapt_domain().
|
static |
Definition at line 504 of file geometry_component_mesh.cc.
References BLI_assert, Mesh::medge, mesh, blender::MutableSpan< T >::size(), Mesh::totedge, MEdge::v1, and MEdge::v2.
|
static |
Definition at line 481 of file geometry_component_mesh.cc.
References ATTR_DOMAIN_POINT, blender::attribute_math::convert_to_static_type(), mesh, T, and Mesh::totpoly.
Referenced by MeshComponent::attribute_try_adapt_domain().
|
static |
Definition at line 463 of file geometry_component_mesh.cc.
References BLI_assert, MPoly::loopstart, mesh, Mesh::mloop, Mesh::mpoly, blender::MutableSpan< T >::size(), MPoly::totloop, Mesh::totpoly, and MLoop::v.
|
static |
Definition at line 39 of file geometry_set_instances.cc.
References BKE_mesh_wrapper_ensure_mdata(), BKE_modifier_get_evaluated_mesh_from_evaluated_object(), MeshComponent::copy_vertex_group_names_from_object(), GeometrySet::get_component_for_write(), mesh, ReadOnly, and MeshComponent::replace().
Referenced by object_get_geometry_set_for_read().
|
static |
Definition at line 281 of file attribute_access.cc.
References BLI_assert_unreachable, CD_MLOOPCOL, CD_PROP_BOOL, CD_PROP_COLOR, CD_PROP_FLOAT, CD_PROP_FLOAT2, CD_PROP_FLOAT3, CD_PROP_INT32, and CD_PROP_STRING.
Referenced by attribute_data_type_highest_complexity().
| CustomDataType blender::bke::attribute_data_type_highest_complexity | ( | Span< CustomDataType > | data_types | ) |
Definition at line 309 of file attribute_access.cc.
References attribute_data_type_complexity(), and CD_PROP_COLOR.
Referenced by blender::nodes::attribute_mix_calc(), blender::nodes::determine_final_data_type_and_domain(), and blender::nodes::get_data_type().
| AttributeDomain blender::bke::attribute_domain_highest_priority | ( | Span< AttributeDomain > | 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 355 of file attribute_access.cc.
References ATTR_DOMAIN_CORNER, and attribute_domain_priority().
Referenced by blender::nodes::determine_final_data_type_and_domain(), blender::nodes::GeoNodeExecParams::get_highest_priority_input_domain(), and blender::nodes::get_result_domain().
|
static |
Definition at line 329 of file attribute_access.cc.
References ATTR_DOMAIN_CORNER, ATTR_DOMAIN_CURVE, ATTR_DOMAIN_EDGE, ATTR_DOMAIN_FACE, ATTR_DOMAIN_POINT, and BLI_assert_unreachable.
Referenced by attribute_domain_highest_priority().
|
static |
Definition at line 208 of file geometry_set_instances.cc.
References BLI_assert, callback, Collection::children, count, Collection::gobject, LISTBASE_FOREACH, and object_instance_attribute_foreach().
Referenced by instances_attribute_foreach_recursive(), and object_instance_attribute_foreach().
| CustomDataType blender::bke::cpp_type_to_custom_data_type | ( | const CPPType & | type | ) |
Definition at line 258 of file attribute_access.cc.
References CD_PROP_BOOL, CD_PROP_COLOR, CD_PROP_FLOAT, CD_PROP_FLOAT2, CD_PROP_FLOAT3, CD_PROP_INT32, and type.
Referenced by GeometryComponent::attribute_get_constant_for_read(), GeometryComponent::attribute_get_for_read(), and blender::nodes::GeoNodeExecParams::get_input_attribute().
|
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 1063 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_MLOOPCOL, CD_MLOOPUV, CD_MPOLY, CD_MVERT, CD_PROP_BOOL, CD_PROP_COLOR, CD_PROP_FLOAT, CD_PROP_FLOAT2, CD_PROP_FLOAT3, CD_PROP_INT32, component(), get_loop_color(), get_material_index(), get_mesh_from_component_for_write(), get_shade_smooth(), get_vertex_position(), MAKE_CONST_CUSTOM_DATA_GETTER, make_derived_write_attribute(), MAKE_MUTABLE_CUSTOM_DATA_GETTER, mesh, blender::bke::BuiltinAttributeProvider::NonCreatable, blender::bke::BuiltinAttributeProvider::NonDeletable, normal, set_loop_color(), set_material_index(), set_shade_smooth(), set_vertex_position(), tag_normals_dirty_when_writing_position(), and blender::bke::BuiltinAttributeProvider::Writable.
|
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 159 of file geometry_component_pointcloud.cc.
References ATTR_DOMAIN_POINT, BKE_pointcloud_update_customdata_pointers(), CD_PROP_FLOAT, CD_PROP_FLOAT3, component(), blender::bke::BuiltinAttributeProvider::Creatable, blender::bke::BuiltinAttributeProvider::Deletable, PointCloudComponent::get_for_read(), PointCloudComponent::get_for_write(), blender::bke::BuiltinAttributeProvider::NonCreatable, blender::bke::BuiltinAttributeProvider::NonDeletable, PointCloud::pdata, and blender::bke::BuiltinAttributeProvider::Writable.
| const blender::fn::CPPType * blender::bke::custom_data_type_to_cpp_type | ( | const CustomDataType | type | ) |
Definition at line 237 of file attribute_access.cc.
References CD_PROP_BOOL, CD_PROP_COLOR, CD_PROP_FLOAT, CD_PROP_FLOAT2, CD_PROP_FLOAT3, CD_PROP_INT32, and type.
Referenced by blender::nodes::attribute_convert_calc(), GeometryComponent::attribute_get_constant_for_read(), GeometryComponent::attribute_get_constant_for_read_converted(), GeometryComponent::attribute_try_get_for_output(), GeometryComponent::attribute_try_get_for_read(), blender::nodes::conversion_can_be_skipped(), blender::nodes::fill_new_attribute(), join_attributes(), and OutputAttributePtr::OutputAttributePtr().
|
static |
Definition at line 128 of file geometry_set_instances.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), BLI_assert, data, geometry_set_collect_recursive_collection_instance(), geometry_set_collect_recursive_object(), GeometrySet::get_component_for_read(), GeometrySet::has_instances(), blender::Span< T >::index_range(), INSTANCE_DATA_TYPE_COLLECTION, INSTANCE_DATA_TYPE_OBJECT, InstancesComponent::instanced_data(), transform(), and InstancesComponent::transforms().
Referenced by geometry_set_collect_recursive_object(), and geometry_set_gather_instances().
|
static |
Definition at line 111 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 86 of file geometry_set_instances.cc.
References geometry_set_collect_recursive_collection(), Collection::instance_offset, sub_v3_v3(), transform(), unit_m4(), and blender::float4x4::values.
Referenced by geometry_set_collect_recursive(), and geometry_set_collect_recursive_object().
|
static |
Definition at line 96 of file geometry_set_instances.cc.
References geometry_set_collect_recursive(), geometry_set_collect_recursive_collection_instance(), OB_EMPTY, object_get_geometry_set_for_read(), transform(), and type.
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 168 of file geometry_set_instances.cc.
References geometry_set_collect_recursive(), unit_m4(), and blender::float4x4::values.
Referenced by blender::nodes::compute_geometry_set_instances_boundbox(), blender::nodes::geo_node_boolean_exec(), blender::nodes::geo_node_point_distribute_exec(), geometry_set_realize_instances(), and geometry_set_realize_mesh_for_modifier().
| void blender::bke::geometry_set_gather_instances_attribute_info | ( | Span< GeometryInstanceGroup > | set_groups, |
| Span< GeometryComponentType > | component_types, | ||
| const Set< std::string > & | ignored_attributes, | ||
| Map< std::string, AttributeKind > & | r_attributes | ||
| ) |
Add information about all the attributes on every component of the type. The resulting info will contain the highest complexity data type and the highest priority domain among every attribute with the given name on all of the input components.
Definition at line 293 of file geometry_set_instances.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_or_modify(), component(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), GeometrySet::get_component_for_read(), and GeometrySet::has().
Referenced by blender::nodes::geo_node_point_distribute_exec(), join_instance_groups_mesh(), and join_instance_groups_pointcloud().
| void blender::bke::geometry_set_instances_attribute_foreach | ( | const GeometrySet & | geometry_set, |
| const AttributeForeachCallback | callback, | ||
| const int | limit | ||
| ) |
Call the callback on all of this geometry set's components, including geometry sets from instances and recursive instances. This is necessary to access available attributes without making all of the set's geometry real.
| limit | The total number of geometry sets to visit before returning early. This is used to avoid looking through too many geometry sets recursively, as an explicit tradeoff in favor of performance at the cost of visiting every unique attribute. |
Definition at line 285 of file geometry_set_instances.cc.
References callback, count, and instances_attribute_foreach_recursive().
Referenced by log_ui_hints().
| GeometrySet blender::bke::geometry_set_realize_instances | ( | const GeometrySet & | geometry_set | ) |
Definition at line 577 of file geometry_set_instances.cc.
References geometry_set_gather_instances(), GeometrySet::has_instances(), join_instance_groups_mesh(), join_instance_groups_pointcloud(), and join_instance_groups_volume().
Referenced by blender::nodes::geo_node_align_rotation_to_vector_exec(), blender::nodes::geo_node_attribute_clamp_exec(), blender::nodes::geo_node_attribute_color_ramp_exec(), blender::nodes::geo_node_attribute_combine_xyz_exec(), blender::nodes::geo_node_attribute_compare_exec(), blender::nodes::geo_node_attribute_convert_exec(), blender::nodes::geo_node_attribute_fill_exec(), blender::nodes::geo_node_attribute_math_exec(), blender::nodes::geo_node_attribute_mix_exec(), blender::nodes::geo_node_attribute_proximity_exec(), blender::nodes::geo_node_attribute_remove_exec(), blender::nodes::geo_node_attribute_sample_texture_exec(), blender::nodes::geo_node_attribute_separate_xyz_exec(), blender::nodes::geo_node_attribute_vector_math_exec(), blender::nodes::geo_node_boolean_exec(), blender::nodes::geo_node_edge_split_exec(), blender::nodes::geo_node_point_instance_exec(), blender::nodes::geo_node_point_rotate_exec(), blender::nodes::geo_node_point_scale_exec(), blender::nodes::geo_node_point_separate_exec(), blender::nodes::geo_node_point_translate_exec(), blender::nodes::geo_node_points_to_volume_exec(), blender::nodes::geo_node_random_attribute_exec(), blender::nodes::geo_node_subdivide_exec(), blender::nodes::geo_node_subdivision_surface_exec(), and blender::nodes::geo_node_triangulate_exec().
| GeometrySet blender::bke::geometry_set_realize_mesh_for_modifier | ( | const GeometrySet & | geometry_set | ) |
Definition at line 559 of file geometry_set_instances.cc.
References geometry_set_gather_instances(), GeometrySet::has_instances(), GeometrySet::has_pointcloud(), join_instance_groups_mesh(), and GeometrySet::remove().
Referenced by modifyMesh(), and prepare_geometry_set_for_mesh_modifier().
Definition at line 829 of file geometry_component_mesh.cc.
References MEdge::crease.
Definition at line 815 of file geometry_component_mesh.cc.
References col, rgba_uchar_to_float(), and srgb_to_linearrgb_v4().
Referenced by create_attribute_providers_for_mesh().
Definition at line 805 of file geometry_component_mesh.cc.
References MLoopUV::uv.
|
static |
Definition at line 785 of file geometry_component_mesh.cc.
References MPoly::mat_nr.
Referenced by create_attribute_providers_for_mesh().
|
static |
Definition at line 795 of file geometry_component_mesh.cc.
References MPoly::flag, and ME_SMOOTH.
Referenced by create_attribute_providers_for_mesh().
Definition at line 767 of file geometry_component_mesh.cc.
References MVert::co.
Referenced by create_attribute_providers_for_mesh().
|
static |
Definition at line 234 of file geometry_set_instances.cc.
References BLI_assert, callback, collection_instance_attribute_foreach(), component(), count, data, GeometrySet::get_component_for_read(), GeometrySet::get_components_for_read(), INSTANCE_DATA_TYPE_COLLECTION, INSTANCE_DATA_TYPE_OBJECT, InstancesComponent::instanced_data(), and object_instance_attribute_foreach().
Referenced by geometry_set_instances_attribute_foreach(), and object_instance_attribute_foreach().
|
static |
Definition at line 440 of file geometry_set_instances.cc.
References BLI_assert, component(), blender::fn::CPPType::copy_to_initialized_n(), custom_data_type_to_cpp_type(), blender::fn::GSpan::data(), GeometrySet::get_component_for_read(), GeometrySet::has(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::items(), result, and UNUSED.
Referenced by join_instance_groups_mesh(), and join_instance_groups_pointcloud().
|
static |
Definition at line 493 of file geometry_set_instances.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), GEO_COMPONENT_TYPE_MESH, GEO_COMPONENT_TYPE_POINT_CLOUD, geometry_set_gather_instances_attribute_info(), join_attributes(), join_mesh_topology_and_builtin_attributes(), MeshComponent::replace(), and result.
Referenced by geometry_set_realize_instances(), and geometry_set_realize_mesh_for_modifier().
|
static |
Definition at line 523 of file geometry_set_instances.cc.
References ATTR_DOMAIN_POINT, BKE_pointcloud_new_nomain(), component(), GEO_COMPONENT_TYPE_POINT_CLOUD, geometry_set_gather_instances_attribute_info(), GeometrySet::get_component_for_read(), GeometrySet::has(), join_attributes(), PointCloudComponent::replace(), and result.
Referenced by geometry_set_realize_instances().
|
static |
Definition at line 550 of file geometry_set_instances.cc.
References result, and UNUSED_VARS.
Referenced by geometry_set_realize_instances().
|
static |
Definition at line 327 of file geometry_set_instances.cc.
References BKE_mesh_copy_settings(), BKE_mesh_new_nomain(), Mesh_Runtime::cd_dirty_edge, Mesh_Runtime::cd_dirty_loop, Mesh_Runtime::cd_dirty_poly, Mesh_Runtime::cd_dirty_vert, PointCloud::co, MVert::co, copy_v3_v3(), MLoop::e, GeometrySet::get_mesh_for_read(), GeometrySet::get_pointcloud_for_read(), GeometrySet::has_mesh(), GeometrySet::has_pointcloud(), MPoly::loopstart, Mesh::medge, mesh, Mesh::mloop, Mesh::mpoly, Mesh::mvert, Mesh::runtime, Mesh::totedge, Mesh::totloop, PointCloud::totpoint, Mesh::totpoly, Mesh::totvert, transform(), MLoop::v, MEdge::v1, and MEdge::v2.
Referenced by join_instance_groups_mesh().
|
static |
Definition at line 144 of file geometry_component_pointcloud.cc.
|
static |
Definition at line 150 of file geometry_component_pointcloud.cc.
|
static |
Definition at line 750 of file geometry_component_mesh.cc.
References data.
|
static |
Definition at line 761 of file geometry_component_mesh.cc.
References data.
Referenced by create_attribute_providers_for_mesh().
|
static |
Definition at line 56 of file geometry_set_instances.cc.
References add_final_mesh_as_geometry_component(), OB_MESH, OB_MODE_EDIT, and type.
Referenced by geometry_set_collect_recursive_object(), and object_instance_attribute_foreach().
|
static |
Definition at line 187 of file geometry_set_instances.cc.
References callback, collection_instance_attribute_foreach(), count, instances_attribute_foreach_recursive(), OB_EMPTY, object_get_geometry_set_for_read(), and type.
Referenced by collection_instance_attribute_foreach(), and instances_attribute_foreach_recursive().
Definition at line 834 of file geometry_component_mesh.cc.
References MEdge::crease, and round_fl_to_uchar_clamp().
Definition at line 824 of file geometry_component_mesh.cc.
References col, and linearrgb_to_srgb_uchar4().
Referenced by create_attribute_providers_for_mesh().
Definition at line 810 of file geometry_component_mesh.cc.
References copy_v2_v2(), and MLoopUV::uv.
|
static |
Definition at line 790 of file geometry_component_mesh.cc.
References clamp(), and MPoly::mat_nr.
Referenced by create_attribute_providers_for_mesh().
|
static |
Definition at line 800 of file geometry_component_mesh.cc.
References MPoly::flag, ME_SMOOTH, and SET_FLAG_FROM_TEST.
Referenced by create_attribute_providers_for_mesh().
Definition at line 772 of file geometry_component_mesh.cc.
References MVert::co, and copy_v3_v3().
Referenced by create_attribute_providers_for_mesh().
|
static |
Definition at line 777 of file geometry_component_mesh.cc.
References Mesh_Runtime::cd_dirty_vert, CD_MASK_NORMAL, component(), get_mesh_from_component_for_write(), mesh, and Mesh::runtime.
Referenced by create_attribute_providers_for_mesh().