Blender V5.3
reorder.cc File Reference
#include "BKE_attribute.hh"
#include "BKE_attribute_filters.hh"
#include "BKE_attribute_math.hh"
#include "BKE_curves.hh"
#include "BKE_curves_utils.hh"
#include "BKE_deform.hh"
#include "BKE_geometry_set.hh"
#include "BKE_instances.hh"
#include "BKE_mesh.hh"
#include "BKE_pointcloud.hh"
#include "BLI_array.hh"
#include "BLI_array_utils.hh"
#include "BLI_index_mask.hh"
#include "BLI_multi_value_map.hh"
#include "BLI_offset_indices.hh"
#include "BLI_sort.hh"
#include "BLI_task.hh"
#include "BLI_vector_set.hh"
#include "BLI_virtual_array.hh"
#include "DNA_curves_types.h"
#include "DNA_mesh_types.h"
#include "DNA_pointcloud_types.h"
#include "GEO_reorder.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::geometry

Functions

const MultiValueMap< bke::GeometryComponent::Type, bke::AttrDomain > & blender::geometry::components_supported_reordering ()
static void blender::geometry::reorder_attributes_group_to_group (const bke::AttributeAccessor src_attributes, const bke::AttrDomain domain, const OffsetIndices< int > src_offsets, const OffsetIndices< int > dst_offsets, const Span< int > old_by_new_map, const bke::AttributeFilter &attribute_filter, bke::MutableAttributeAccessor dst_attributes)
static Array< int > blender::geometry::invert_permutation (const Span< int > permutation)
static void blender::geometry::copy_and_reorder_mesh_verts (const Mesh &src_mesh, const Span< int > old_by_new_map, const bke::AttributeFilter &attribute_filter, Mesh &dst_mesh)
static void blender::geometry::copy_and_reorder_mesh_edges (const Mesh &src_mesh, const Span< int > old_by_new_map, const bke::AttributeFilter &attribute_filter, Mesh &dst_mesh)
static void blender::geometry::copy_and_reorder_mesh_faces (const Mesh &src_mesh, const Span< int > old_by_new_map, const bke::AttributeFilter &attribute_filter, Mesh &dst_mesh)
static void blender::geometry::copy_and_reorder_mesh (const Mesh &src_mesh, const Span< int > old_by_new_map, const bke::AttrDomain domain, const bke::AttributeFilter &attribute_filter, Mesh &dst_mesh)
static void blender::geometry::copy_and_reorder_points (const PointCloud &src_pointcloud, const Span< int > old_by_new_map, const bke::AttributeFilter &attribute_filter, PointCloud &dst_pointcloud)
static void blender::geometry::copy_and_reorder_curves (const bke::CurvesGeometry &src_curves, const Span< int > old_by_new_map, const bke::AttributeFilter &attribute_filter, bke::CurvesGeometry &dst_curves)
static void blender::geometry::copy_and_reorder_instaces (const bke::Instances &src_instances, const Span< int > old_by_new_map, const bke::AttributeFilter &attribute_filter, bke::Instances &dst_instances)
Mesh * blender::geometry::reorder_mesh (const Mesh &src_mesh, Span< int > old_by_new_map, bke::AttrDomain domain, const bke::AttributeFilter &attribute_filter)
PointCloud * blender::geometry::reorder_points (const PointCloud &src_pointcloud, Span< int > old_by_new_map, const bke::AttributeFilter &attribute_filter)
bke::CurvesGeometry blender::geometry::reorder_curves_geometry (const bke::CurvesGeometry &src_curves, Span< int > old_by_new_map, const bke::AttributeFilter &attribute_filter)
Curves * blender::geometry::reorder_curves (const Curves &src_curves, Span< int > old_by_new_map, const bke::AttributeFilter &attribute_filter)
bke::Instances * blender::geometry::reorder_instaces (const bke::Instances &src_instances, Span< int > old_by_new_map, const bke::AttributeFilter &attribute_filter)
bke::GeometryComponentPtr blender::geometry::reordered_component (const bke::GeometryComponent &src_component, Span< int > old_by_new_map, bke::AttrDomain domain, const bke::AttributeFilter &attribute_filter)
template<typename T, typename Func>
static void blender::geometry::parallel_transform (MutableSpan< T > values, const int64_t grain_size, const Func &func)
static void blender::geometry::grouped_sort (const OffsetIndices< int > offsets, const Span< float > weights, MutableSpan< int > indices)
static void blender::geometry::find_points_by_group_index (const Span< int > indices, MutableSpan< int > r_offsets, MutableSpan< int > r_indices)
static int blender::geometry::identifiers_to_indices (MutableSpan< int > r_identifiers_to_indices)
std::optional< Array< int > > blender::geometry::sort_indices_by_weights (int domain_size, const IndexMask &mask, const VArray< int > &group_id, const VArray< float > &weight)