20#define STD_UV_CONNECT_LIMIT 0.0001f
122 const int3 *corner_tris,
124 const int *corner_verts,
141 MeshElemMap **r_map,
int **r_mem,
int totsource,
const int *final_origindex,
int totfinal);
149 const int *corner_tri_faces,
150 int corner_tris_num);
183 short innercut_type);
188 const int *items_indices,
189 int num_island_items,
190 int *island_item_indices,
191 int num_innercut_items,
192 int *innercut_item_indices);
264 bool use_boundary_vertices_for_bitflags,
268#define BKE_MESH_TESSTRI_VINDEX_ORDER(_tri, _v) \
270 _tri, unsigned int *, int *, int[3], const unsigned int *, const int *, const int[3]), \
271 CHECK_TYPE_ANY(_v, unsigned int, const unsigned int, int, const int)), \
272 (((_tri)[0] == _v) ? 0 : \
273 ((_tri)[1] == _v) ? 1 : \
274 ((_tri)[2] == _v) ? 2 : \
283 Array<int> &r_offsets,
284 Array<int> &r_indices);
288 OffsetIndices<int> offsets,
289 MutableSpan<int> face_indices);
293 Array<int> &r_offsets,
294 Array<int> &r_indices);
299 Array<int> &r_offsets,
300 Array<int> &r_indices);
304 Array<int> &r_offsets,
305 Array<int> &r_indices);
310 Array<int> &r_offsets,
311 Array<int> &r_indices);
void build_vert_to_face_indices(OffsetIndices< int > faces, Span< int > corner_verts, OffsetIndices< int > offsets, MutableSpan< int > face_indices)
GroupedSpan< int > build_vert_to_corner_map(Span< int > corner_verts, int verts_num, Array< int > &r_offsets, Array< int > &r_indices)
GroupedSpan< int > build_edge_to_corner_map(Span< int > corner_edges, int edges_num, Array< int > &r_offsets, Array< int > &r_indices)
GroupedSpan< int > build_edge_to_face_map(OffsetIndices< int > faces, Span< int > corner_edges, int edges_num, Array< int > &r_offsets, Array< int > &r_indices)
Array< int > build_corner_to_face_map(OffsetIndices< int > faces)
Array< int > build_vert_to_corner_indices(Span< int > corner_verts, OffsetIndices< int > offsets)
GroupedSpan< int > build_vert_to_face_map(OffsetIndices< int > faces, Span< int > corner_verts, int verts_num, Array< int > &r_offsets, Array< int > &r_indices)
GroupedSpan< int > build_vert_to_edge_map(Span< int2 > edges, int verts_num, Array< int > &r_offsets, Array< int > &r_indices)
void BKE_mesh_uv_vert_map_free(UvVertMap *vmap)
UvMapVert * BKE_mesh_uv_vert_map_get_vert(UvVertMap *vmap, unsigned int v)
ATTR_WARN_UNUSED_RESULT const BMVert * v
int * 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)
VecBase< float, 2 > float2
VecBase< int32_t, 3 > int3
void 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)
UvVertMap * 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)
void 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)
void 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 BKE_mesh_loop_islands_clear(MeshIslandStore *island_store)
void BKE_mesh_loop_islands_free(MeshIslandStore *island_store)
bool(*)(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) MeshRemapIslandsCalc
void BKE_mesh_origindex_map_create(MeshElemMap **r_map, int **r_mem, int totsource, const int *final_origindex, int totfinal)
bool 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)
void BKE_mesh_loop_islands_init(MeshIslandStore *island_store, short item_type, int items_num, short island_type, short innercut_type)
int * 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)
int * island_total_unique_uvs
unsigned short loop_of_face_index
unsigned short loop_of_face_index