Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-09-12 01:36:06 +0300
committerHans Goudey <h.goudey@me.com>2022-09-12 01:36:06 +0300
commit0aeb1f0c5bb95be426d96a5ad9924610d909899d (patch)
tree7662d28b86f0de0894e48f2aa9ece429424c1a0b /source/blender/blenkernel/BKE_mesh_mapping.h
parent789297ecb91002aa7c4e7c59a8a6c4fd2b80c462 (diff)
Start converting mesh positions to a generic attribute
Diffstat (limited to 'source/blender/blenkernel/BKE_mesh_mapping.h')
-rw-r--r--source/blender/blenkernel/BKE_mesh_mapping.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/source/blender/blenkernel/BKE_mesh_mapping.h b/source/blender/blenkernel/BKE_mesh_mapping.h
index 60ef4825f88..aef22723971 100644
--- a/source/blender/blenkernel/BKE_mesh_mapping.h
+++ b/source/blender/blenkernel/BKE_mesh_mapping.h
@@ -15,7 +15,6 @@ struct MLoop;
struct MLoopTri;
struct MLoopUV;
struct MPoly;
-struct MVert;
/* UvVertMap */
#define STD_UV_CONNECT_LIMIT 0.0001f
@@ -135,7 +134,6 @@ void BKE_mesh_vert_loop_map_create(MeshElemMap **r_map,
*/
void BKE_mesh_vert_looptri_map_create(MeshElemMap **r_map,
int **r_mem,
- const struct MVert *mvert,
int totvert,
const struct MLoopTri *mlooptri,
int totlooptri,
@@ -249,7 +247,7 @@ void BKE_mesh_loop_islands_add(MeshIslandStore *island_store,
int num_innercut_items,
int *innercut_item_indices);
-typedef bool (*MeshRemapIslandsCalc)(const struct MVert *verts,
+typedef bool (*MeshRemapIslandsCalc)(const float (*positions)[3],
int totvert,
const struct MEdge *edges,
int totedge,
@@ -266,7 +264,7 @@ typedef bool (*MeshRemapIslandsCalc)(const struct MVert *verts,
* Calculate 'generic' UV islands, i.e. based only on actual geometry data (edge seams),
* not some UV layers coordinates.
*/
-bool BKE_mesh_calc_islands_loop_poly_edgeseam(const struct MVert *verts,
+bool BKE_mesh_calc_islands_loop_poly_edgeseam(const float (*positions)[3],
int totvert,
const struct MEdge *edges,
int totedge,
@@ -289,7 +287,7 @@ bool BKE_mesh_calc_islands_loop_poly_edgeseam(const struct MVert *verts,
* Not sure it would be worth the more complex code, though,
* those loops are supposed to be really quick to do.
*/
-bool BKE_mesh_calc_islands_loop_poly_uvmap(struct MVert *verts,
+bool BKE_mesh_calc_islands_loop_poly_uvmap(float (*positions)[3],
int totvert,
struct MEdge *edges,
int totedge,