Blender V5.3
BKE_mesh_mapping.hh File Reference

Go to the source code of this file.

Classes

struct  blender::UvMapVert
struct  blender::UvVertMap
struct  blender::UvElement
struct  blender::UvElementMap
struct  blender::MeshElemMap
struct  blender::MeshIslandStore

Namespaces

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

Macros

#define STD_UV_CONNECT_LIMIT   0.0001f
#define BKE_MESH_TESSTRI_VINDEX_ORDER(_tri, _v)

Typedefs

using blender::MeshRemapIslandsCalc

Enumerations

enum  {
  blender::MISLAND_TYPE_NONE = 0 , blender::MISLAND_TYPE_VERT = 1 , blender::MISLAND_TYPE_EDGE = 2 , blender::MISLAND_TYPE_POLY = 3 ,
  blender::MISLAND_TYPE_LOOP = 4
}

Functions

Array< int > blender::bke::mesh::build_corner_to_face_map (OffsetIndices< int > faces)
GroupedSpan< int > blender::bke::mesh::build_vert_to_edge_map (Span< int2 > edges, int verts_num, Array< int > &r_offsets, Array< int > &r_indices)
void blender::bke::mesh::build_vert_to_face_indices (OffsetIndices< int > faces, Span< int > corner_verts, OffsetIndices< int > offsets, MutableSpan< int > face_indices)
GroupedSpan< int > blender::bke::mesh::build_vert_to_face_map (OffsetIndices< int > faces, Span< int > corner_verts, int verts_num, Array< int > &r_offsets, Array< int > &r_indices)
Array< int > blender::bke::mesh::build_vert_to_corner_indices (Span< int > corner_verts, OffsetIndices< int > offsets)
GroupedSpan< int > blender::bke::mesh::build_vert_to_corner_map (Span< int > corner_verts, int verts_num, Array< int > &r_offsets, Array< int > &r_indices)
GroupedSpan< int > blender::bke::mesh::build_edge_to_corner_map (Span< int > corner_edges, int edges_num, Array< int > &r_offsets, Array< int > &r_indices)
GroupedSpan< int > blender::bke::mesh::build_edge_to_face_map (OffsetIndices< int > faces, Span< int > corner_edges, int edges_num, Array< int > &r_offsets, Array< int > &r_indices)
Mesh Connectivity Mapping
UvVertMap * blender::BKE_mesh_uv_vert_map_create (OffsetIndices< int > faces, Span< int > corner_verts, Span< float2 > uv_map, int verts_num, const float2 &limit, bool use_winding)
UvMapVert * blender::BKE_mesh_uv_vert_map_get_vert (UvVertMap *vmap, unsigned int v)
void blender::BKE_mesh_uv_vert_map_free (UvVertMap *vmap)
void blender::BKE_mesh_vert_corner_tri_map_create (MeshElemMap **r_map, int **r_mem, int totvert, const int3 *corner_tris, int tris_num, const int *corner_verts, int corners_num)
void blender::BKE_mesh_origindex_map_create (MeshElemMap **r_map, int **r_mem, int totsource, const int *final_origindex, int totfinal)
void blender::BKE_mesh_origindex_map_create_corner_tri (MeshElemMap **r_map, int **r_mem, OffsetIndices< int > faces, const int *corner_tri_faces, int corner_tris_num)
Mesh loops/face islands.

Used currently for UVs and 'smooth groups'.

void blender::BKE_mesh_loop_islands_init (MeshIslandStore *island_store, short item_type, int items_num, short island_type, short innercut_type)
void blender::BKE_mesh_loop_islands_clear (MeshIslandStore *island_store)
void blender::BKE_mesh_loop_islands_free (MeshIslandStore *island_store)
void blender::BKE_mesh_loop_islands_add (MeshIslandStore *island_store, int item_num, const int *items_indices, int num_island_items, int *island_item_indices, int num_innercut_items, int *innercut_item_indices)
bool blender::BKE_mesh_calc_islands_loop_face_edgeseam (Span< float3 > vert_positions, Span< int2 > edges, Span< bool > uv_seams, OffsetIndices< int > faces, Span< int > corner_verts, Span< int > corner_edges, MeshIslandStore *r_island_store)
int * blender::BKE_mesh_calc_smoothgroups (int edges_num, OffsetIndices< int > faces, Span< int > corner_edges, Span< bool > sharp_edges, Span< bool > sharp_faces, int *r_totgroup)
int * blender::BKE_mesh_calc_smoothgroups_bitflags (int edges_num, int verts_num, OffsetIndices< int > faces, Span< int > corner_edges, Span< int > corner_verts, Span< bool > sharp_edges, Span< bool > sharp_faces, bool use_boundary_vertices_for_bitflags, int *r_totgroup)

Macro Definition Documentation

◆ BKE_MESH_TESSTRI_VINDEX_ORDER

#define BKE_MESH_TESSTRI_VINDEX_ORDER ( _tri,
_v )
Value:
_tri, unsigned int *, int *, int[3], const unsigned int *, const int *, const int[3]), \
CHECK_TYPE_ANY(_v, unsigned int, const unsigned int, int, const int)), \
(((_tri)[0] == _v) ? 0 : \
((_tri)[1] == _v) ? 1 : \
((_tri)[2] == _v) ? 2 : \
-1))
#define CHECK_TYPE_ANY(...)

Definition at line 268 of file BKE_mesh_mapping.hh.

Referenced by blender::check_seam().

◆ STD_UV_CONNECT_LIMIT