Blender V5.3
mesh_validate.cc File Reference
#include <algorithm>
#include <fmt/format.h>
#include "BKE_attribute_legacy_convert.hh"
#include "BKE_attribute_math.hh"
#include "CLG_log.h"
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
#include "BLI_array_utils.hh"
#include "BLI_index_ranges_builder.hh"
#include "BLI_listbase.hh"
#include "BLI_ordered_edge.hh"
#include "BKE_attribute.hh"
#include "BKE_customdata.hh"
#include "BKE_mesh.hh"
#include "DEG_depsgraph.hh"

Go to the source code of this file.

Classes

class  blender::bke::ErrorMessages

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::bke

Typedefs

using blender::bke::EdgeMap

Functions

template<typename... T>
static void blender::bke::print_error_with_indices (const IndexMask &mask, fmt::format_string< T... > fmt, T &&...args)
static IndexMask blender::bke::find_edges_bad_verts (const Mesh &mesh, IndexMaskMemory &memory, const bool verbose)
static IndexMask blender::bke::find_edges_duplicates (const Mesh &mesh, const IndexMask &mask, IndexMaskMemory &memory, const bool verbose, EdgeMap &unique_edges)
static IndexMask blender::bke::find_faces_bad_offsets (const Mesh &mesh, IndexMaskMemory &memory, const bool verbose)
static IndexMask blender::bke::find_faces_bad_verts (const Mesh &mesh, const IndexMask &mask, IndexMaskMemory &memory, const bool verbose)
static IndexMask blender::bke::find_faces_duplicate_verts (const Mesh &mesh, const IndexMask &mask, IndexMaskMemory &memory, const bool verbose)
static IndexMask blender::bke::find_faces_missing_edges (const Mesh &mesh, const IndexMask &mask, const EdgeMap &unique_edges, IndexMaskMemory &memory, const bool verbose)
static bool blender::bke::find_faces_bad_edges (const Mesh &mesh, const IndexMask &mask, IndexMaskMemory &memory, const bool verbose)
static IndexMask blender::bke::find_duplicate_faces (const Mesh &mesh, const IndexMask &mask, IndexMaskMemory &memory, const bool verbose)
static void blender::bke::remove_invalid_faces (Mesh &mesh, const IndexMask &valid_faces)
static void blender::bke::remove_invalid_edges (Mesh &mesh, const IndexMask &valid_edges)
static bool blender::bke::validate_vertex_groups (const Mesh &mesh, const bool verbose, Mesh *mesh_mut)
static bool blender::bke::validate_material_indices (const Mesh &mesh, const bool only_check_negative, const bool verbose, Mesh *mesh_mut)
static bool blender::bke::validate_selection_history (const Mesh &mesh, const bool verbose, Mesh *mesh_mut)
static IndexMask blender::bke::get_invalid_float_mask (const Span< float > values, const int floats_per_item, IndexMaskMemory &memory)
static void blender::bke::validate_float_attribute (const bke::AttributeIter &iter, const int floats_per_item, const bool verbose, bool &all_attributes_valid, Mesh *mesh_mut)
static void blender::bke::validate_bool_attribute (const bke::AttributeIter &iter, const bool verbose, bool &all_attributes_valid, Mesh *mesh_mut)
static bool blender::bke::validate_generic_attributes (const Mesh &mesh, const bool verbose, Mesh *mesh_mut)
static bool blender::bke::validate_mdisps (const Mesh &mesh, const bool verbose, Mesh *mesh_mut)
static bool blender::bke::mesh_validate_impl (const Mesh &mesh, const bool verbose, const bool allow_missing_edges, Mesh *mesh_mut)
Topology Queries
IndexMask blender::bke::find_duplicate_faces (OffsetIndices< int > faces, Span< int > corner_verts, const IndexMask &mask, IndexMaskMemory &memory, MutableSpan< int > r_originals={})
bool blender::bke::mesh_validate (Mesh &mesh, bool verbose=false, bool allow_missing_edges=false)
bool blender::bke::mesh_is_valid (const Mesh &mesh, bool verbose=true)
bool blender::bke::mesh_validate_material_indices (Mesh &mesh)
IndexMask blender::bke::mesh_find_faces_duplicate_verts (const Mesh &mesh, IndexMaskMemory &memory)

Variables

static CLG_LogRef blender::LOG = {"geom.mesh"}