Blender V5.3
mesh_evaluate.cc File Reference
#include "MEM_guardedalloc.h"
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
#include "BLI_array_utils.hh"
#include "BLI_index_range.hh"
#include "BLI_math_geom_c.hh"
#include "BLI_span.hh"
#include "BLI_utildefines.hh"
#include "BLI_virtual_array.hh"
#include "BKE_attribute.hh"
#include "BKE_mesh.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::bke
namespace  blender::bke::mesh

Functions

static float3 blender::bke::mesh::face_center_calc_ngon (const Span< float3 > vert_positions, const Span< int > face_verts)
static float blender::bke::mesh::mesh_calc_face_volume_centroid_with_reference_center (const Span< float3 > positions, const Span< int > face_verts, const float3 &reference_center, float r_cent[3])
static float blender::bke::mesh::face_area_centroid_calc (const Span< float3 > positions, const Span< int > face_verts, float r_cent[3])
Polygon Data Evaluation
float3 blender::bke::mesh::face_center_calc (Span< float3 > vert_positions, Span< int > face_verts)
float blender::bke::mesh::face_area_calc (Span< float3 > vert_positions, Span< int > face_verts)
void blender::bke::mesh::face_angles_calc (Span< float3 > vert_positions, Span< int > face_verts, MutableSpan< float > angles)
Polygon Calculations
float blender::BKE_mesh_calc_area (const Mesh *mesh)
static float UNUSED_FUNCTION blender::mesh_calc_face_volume_centroid (const int *face_verts, const int face_size, const float(*positions)[3], float r_cent[3])
Mesh Center Calculation
bool blender::BKE_mesh_center_median (const Mesh *mesh, float r_cent[3])
bool blender::BKE_mesh_center_median_from_faces (const Mesh *mesh, float r_cent[3])
bool blender::BKE_mesh_center_of_surface (const Mesh *mesh, float r_cent[3])
bool blender::BKE_mesh_center_of_volume (const Mesh *mesh, float r_cent[3])
Mesh Volume Calculation
static bool blender::mesh_calc_center_centroid_ex (const float(*positions)[3], int, const int3 *corner_tris, int corner_tris_num, const int *corner_verts, float r_center[3])
void blender::BKE_mesh_calc_volume (const float(*vert_positions)[3], int mverts_num, const int3 *corner_tris, int corner_tris_num, const int *corner_verts, float *r_volume, float r_center[3])
Mesh Displacement Data Flip
void blender::BKE_mesh_mdisp_flip (MDisps *md, bool use_loop_mdisp_flip)
Topology Queries
void blender::bke::mesh_edge_hide_from_vert (Span< int2 > edges, Span< bool > hide_vert, MutableSpan< bool > hide_edge)
void blender::bke::mesh_face_hide_from_vert (OffsetIndices< int > faces, Span< int > corner_verts, Span< bool > hide_vert, MutableSpan< bool > hide_poly)
void blender::bke::mesh_hide_vert_flush (Mesh &mesh)
void blender::bke::mesh_hide_face_flush (Mesh &mesh)
void blender::bke::mesh_select_face_flush (Mesh &mesh)
void blender::bke::mesh_select_vert_flush (Mesh &mesh)
void blender::bke::mesh_select_edge_flush (Mesh &mesh)
Mesh Spatial Calculation
void blender::BKE_mesh_calc_relative_deform (const int *face_offsets, int faces_num, const int *corner_verts, int totvert, const float(*vert_cos_src)[3], const float(*vert_cos_dst)[3], const float(*vert_cos_org)[3], float(*vert_cos_new)[3])

Detailed Description

Functions to evaluate mesh data.

Definition in file mesh_evaluate.cc.