|
Blender V5.3
|
#include <algorithm>#include "MEM_guardedalloc.h"#include "DNA_meshdata_types.h"#include "BLI_array.hh"#include "BLI_linklist.hh"#include "BLI_math_geom_c.hh"#include "BLI_math_matrix_c.hh"#include "BLI_math_vector_c.hh"#include "BLI_math_vector_types.hh"#include "BLI_memarena.hh"#include "BLI_task_c.hh"#include "BKE_attribute.h"#include "BKE_attribute.hh"#include "BKE_attribute_legacy_convert.hh"#include "BKE_customdata.hh"#include "BKE_multires.hh"#include "bmesh.hh"#include "intern/bmesh_private.hh"Go to the source code of this file.
Classes | |
| struct | blender::BMLoopInterpMultiresData |
| struct | blender::LoopWalkCtx |
| struct | blender::LoopGroupCD |
Namespaces | |
| namespace | blender |
| BMesh Iterators. | |
Functions | |
| static void | blender::bm_data_interp_from_elem (CustomData *data_layer, const BMElem *ele_src_1, const BMElem *ele_src_2, BMElem *ele_dst, const float fac) |
| void | blender::BM_data_interp_from_verts (BMesh *bm, const BMVert *v_src_1, const BMVert *v_src_2, BMVert *v_dst, float fac) |
| Data, Interpolate From Verts. | |
| void | blender::BM_data_interp_from_edges (BMesh *bm, const BMEdge *e_src_1, const BMEdge *e_src_2, BMEdge *e_dst, float fac) |
| Data, Interpolate From Edges. | |
| static void UNUSED_FUNCTION | blender::BM_Data_Vert_Average (BMesh *, BMFace *) |
| Data Vert Average. | |
| void | blender::BM_data_interp_face_vert_edge (BMesh *bm, const BMVert *v_src_1, const BMVert *v_src_2, BMVert *v, BMEdge *e, float fac) |
| Data Face-Vert Edge Interpolate. | |
| void | blender::BM_face_interp_from_face_ex (BMesh *bm, BMFace *f_dst, const BMFace *f_src, bool do_vertex, const void **blocks, const void **blocks_v, float(*cos_2d)[2], float axis_mat[3][3]) |
| Data Interpolate From Face. | |
| void | blender::BM_face_interp_from_face (BMesh *bm, BMFace *f_dst, const BMFace *f_src, const bool do_vertex) |
| static int | blender::compute_mdisp_quad (const BMLoop *l, const float l_f_center[3], float v1[3], float v2[3], float v3[3], float v4[3], float e1[3], float e2[3]) |
| Multires Interpolation. | |
| static bool | blender::quad_co (const float v1[3], const float v2[3], const float v3[3], const float v4[3], const float p[3], const float n[3], float r_uv[2]) |
| static void | blender::mdisp_axis_from_quad (const float v1[3], const float v2[3], float[3], const float v4[3], float r_axis_x[3], float r_axis_y[3]) |
| static bool | blender::mdisp_in_mdispquad (BMLoop *l_src, BMLoop *l_dst, const float l_dst_f_center[3], const float p[3], int res, float r_axis_x[3], float r_axis_y[3], float r_uv[2]) |
| static float | blender::bm_loop_flip_equotion (float mat[2][2], float b[2], const float target_axis_x[3], const float target_axis_y[3], const float coord[3], int i, int j) |
| static void | blender::bm_loop_flip_disp (const float source_axis_x[3], const float source_axis_y[3], const float target_axis_x[3], const float target_axis_y[3], float disp[3]) |
| static void | blender::loop_interp_multires_cb (void *__restrict userdata, const int ix, const TaskParallelTLS *__restrict) |
| void | blender::BM_loop_interp_multires_ex (BMesh *, BMLoop *l_dst, const BMFace *f_src, const float f_dst_center[3], const float f_src_center[3], const int cd_loop_mdisp_offset) |
| void | blender::BM_loop_interp_multires (BMesh *bm, BMLoop *l_dst, const BMFace *f_src) |
| void | blender::BM_face_interp_multires_ex (BMesh *bm, BMFace *f_dst, const BMFace *f_src, const float f_dst_center[3], const float f_src_center[3], const int cd_loop_mdisp_offset) |
| void | blender::BM_face_interp_multires (BMesh *bm, BMFace *f_dst, const BMFace *f_src) |
| void | blender::BM_face_multires_bounds_smooth (BMesh *bm, BMFace *f) |
| void | blender::BM_loop_interp_from_face (BMesh *bm, BMLoop *l_dst, const BMFace *f_src, const bool do_vertex, const bool do_multires) |
| void | blender::BM_vert_interp_from_face (BMesh *bm, BMVert *v_dst, const BMFace *f_src) |
| static void | blender::update_data_blocks (BMesh *bm, CustomData *olddata, CustomData *data) |
| void | blender::BM_data_layer_add (BMesh *bm, CustomData *data, int type) |
| void | blender::BM_data_layer_add_named (BMesh *bm, CustomData *data, int type, const StringRef name) |
| void | blender::BM_data_layer_ensure_named (BMesh *bm, CustomData *data, int type, const StringRef name) |
| void | blender::BM_uv_map_attr_pin_ensure_for_all_layers (BMesh *bm) |
| void | blender::BM_uv_map_attr_pin_ensure_named (BMesh *bm, const StringRef uv_map_name) |
| bool | blender::BM_uv_map_attr_pin_exists (const BMesh *bm, const StringRef uv_map_name) |
| void | blender::BM_data_layer_free (BMesh *bm, CustomData *data, int type) |
| bool | blender::BM_data_layer_free_named (BMesh *bm, CustomData *data, StringRef name) |
| void | blender::BM_data_layer_free_n (BMesh *bm, CustomData *data, int type, int n) |
| void | blender::BM_data_layer_copy (BMesh *bm, CustomData *data, int type, int src_n, int dst_n) |
| float | blender::BM_elem_float_data_get (CustomData *cd, void *element, int type) |
| void | blender::BM_elem_float_data_set (CustomData *cd, void *element, int type, const float val) |
| BMDataLayerLookup | blender::BM_data_layer_lookup (const BMesh &bm, const StringRef name) |
Loop interpolation functions: BM_vert_loop_groups_data_layer_*** | |
Handling loop custom-data such as UVs, while keeping contiguous fans is rather tedious. Especially when a verts loops can have multiple CustomData layers, and each layer can have multiple (different) contiguous fans. Said differently, a single vertices loops may span multiple UV islands. These functions snapshot vertices loops, storing each contiguous fan in its own group. The caller can manipulate the loops, then re-combine the CustomData values. While these functions don't explicitly handle multiple layers at once, the caller can simply store its own list.
| |
| static void | blender::bm_loop_walk_add (LoopWalkCtx *lwc, BMLoop *l) |
| static void | blender::bm_loop_walk_data (LoopWalkCtx *lwc, BMLoop *l_walk) |
| LinkNode * | blender::BM_vert_loop_groups_data_layer_create (BMesh *bm, BMVert *v, const int layer_n, const float *loop_weights, MemArena *arena) |
| static void | blender::bm_vert_loop_groups_data_layer_merge__single (BMesh *bm, void *lf_p, int layer_n, void *data_tmp) |
| static void | blender::bm_vert_loop_groups_data_layer_merge_weights__single (BMesh *bm, void *lf_p, const int layer_n, void *data_tmp, const float *loop_weights) |
| void | blender::BM_vert_loop_groups_data_layer_merge (BMesh *bm, LinkNode *groups, const int layer_n) |
| void | blender::BM_vert_loop_groups_data_layer_merge_weights (BMesh *bm, LinkNode *groups, const int layer_n, const float *loop_weights) |
Functions for interpolating data across the surface of a mesh.
Definition in file bmesh_interp.cc.