39 #define STD_UV_CONNECT_LIMIT 0.0001f
88 #define INVALID_ISLAND ((unsigned int)-1)
98 const struct MLoop *mloop,
100 unsigned int totpoly,
101 unsigned int totvert,
102 const float limit[2],
104 const bool use_winding);
110 const struct MPoly *mpoly,
111 const struct MLoop *mloop,
117 const struct MPoly *mpoly,
118 const struct MLoop *mloop,
124 const struct MVert *mvert,
127 const int totlooptri,
128 const struct MLoop *mloop,
131 MeshElemMap **r_map,
int **r_mem,
const struct MEdge *medge,
int totvert,
int totedge);
133 MeshElemMap **r_map,
int **r_mem,
const struct MEdge *medge,
int totvert,
int totedge);
136 const struct MEdge *medge,
138 const struct MPoly *mpoly,
140 const struct MLoop *mloop,
144 const struct MEdge *medge,
146 const struct MPoly *mpoly,
148 const struct MLoop *mloop,
153 const int *final_origindex,
157 const struct MPoly *mpoly,
160 const int looptri_num);
190 const short item_type,
192 const short island_type,
193 const short innercut_type);
198 const int *items_indices,
199 const int num_island_items,
200 int *island_item_indices,
201 const int num_innercut_items,
202 int *innercut_item_indices);
240 const struct MPoly *mpoly,
242 const struct MLoop *mloop,
245 const bool use_bitflags);
248 #define BKE_MESH_TESSTRI_VINDEX_ORDER(_tri, _v) \
250 _tri, unsigned int *, int *, int[3], const unsigned int *, const int *, const int[3]), \
251 CHECK_TYPE_ANY(_v, unsigned int, const unsigned int, int, const int)), \
252 (((_tri)[0] == _v) ? 0 : ((_tri)[1] == _v) ? 1 : ((_tri)[2] == _v) ? 2 : -1))
void BKE_mesh_edge_loop_map_create(MeshElemMap **r_map, int **r_mem, const struct MEdge *medge, const int totedge, const struct MPoly *mpoly, const int totpoly, const struct MLoop *mloop, const int totloop)
void BKE_mesh_vert_edge_vert_map_create(MeshElemMap **r_map, int **r_mem, const struct MEdge *medge, int totvert, int totedge)
UvMapVert * BKE_mesh_uv_vert_map_get_vert(UvVertMap *vmap, unsigned int v)
void BKE_mesh_vert_looptri_map_create(MeshElemMap **r_map, int **r_mem, const struct MVert *mvert, const int totvert, const struct MLoopTri *mlooptri, const int totlooptri, const struct MLoop *mloop, const int totloop)
struct MeshElemMap MeshElemMap
struct UvVertMap UvVertMap
bool BKE_mesh_calc_islands_loop_poly_uvmap(struct MVert *verts, const int totvert, struct MEdge *edges, const int totedge, struct MPoly *polys, const int totpoly, struct MLoop *loops, const int totloop, const struct MLoopUV *luvs, MeshIslandStore *r_island_store)
int * BKE_mesh_calc_smoothgroups(const struct MEdge *medge, const int totedge, const struct MPoly *mpoly, const int totpoly, const struct MLoop *mloop, const int totloop, int *r_totgroup, const bool use_bitflags)
bool(* MeshRemapIslandsCalc)(struct MVert *verts, const int totvert, struct MEdge *edges, const int totedge, struct MPoly *polys, const int totpoly, struct MLoop *loops, const int totloop, struct MeshIslandStore *r_island_store)
void BKE_mesh_origindex_map_create(MeshElemMap **r_map, int **r_mem, const int totsource, const int *final_origindex, const int totfinal)
void BKE_mesh_edge_poly_map_create(MeshElemMap **r_map, int **r_mem, const struct MEdge *medge, const int totedge, const struct MPoly *mpoly, const int totpoly, const struct MLoop *mloop, const int totloop)
void BKE_mesh_vert_loop_map_create(MeshElemMap **r_map, int **r_mem, const struct MPoly *mpoly, const struct MLoop *mloop, int totvert, int totpoly, int totloop)
void BKE_mesh_loop_islands_add(MeshIslandStore *island_store, const int item_num, const int *items_indices, const int num_island_items, int *island_item_indices, const int num_innercut_items, int *innercut_item_indices)
struct UvElement UvElement
void BKE_mesh_loop_islands_init(MeshIslandStore *island_store, const short item_type, const int items_num, const short island_type, const short innercut_type)
void BKE_mesh_vert_poly_map_create(MeshElemMap **r_map, int **r_mem, const struct MPoly *mpoly, const struct MLoop *mloop, int totvert, int totpoly, int totloop)
void BKE_mesh_loop_islands_clear(MeshIslandStore *island_store)
struct UvMapVert UvMapVert
void BKE_mesh_uv_vert_map_free(UvVertMap *vmap)
struct UvElementMap UvElementMap
struct MeshIslandStore MeshIslandStore
void BKE_mesh_vert_edge_map_create(MeshElemMap **r_map, int **r_mem, const struct MEdge *medge, int totvert, int totedge)
bool BKE_mesh_calc_islands_loop_poly_edgeseam(struct MVert *verts, const int totvert, struct MEdge *edges, const int totedge, struct MPoly *polys, const int totpoly, struct MLoop *loops, const int totloop, MeshIslandStore *r_island_store)
UvVertMap * BKE_mesh_uv_vert_map_create(const struct MPoly *mpoly, const struct MLoop *mloop, const struct MLoopUV *mloopuv, unsigned int totpoly, unsigned int totvert, const float limit[2], const bool selected, const bool use_winding)
void BKE_mesh_origindex_map_create_looptri(MeshElemMap **r_map, int **r_mem, const struct MPoly *mpoly, const int mpoly_num, const struct MLoopTri *looptri, const int looptri_num)
void BKE_mesh_loop_islands_free(MeshIslandStore *island_store)
ATTR_WARN_UNUSED_RESULT const BMVert * v
struct MeshElemMap ** innercuts
struct MeshElemMap ** islands
unsigned short loop_of_poly_index
unsigned short loop_of_poly_index