[Bf-blender-cvs] [846fc7fa229] refactor-mesh-uv-map-generic: Cleanup: Remove unused function.
Martijn Versteegh
noreply at git.blender.org
Thu Oct 6 15:53:19 CEST 2022
Commit: 846fc7fa229adb9edacc2c580f54adbd3a93b565
Author: Martijn Versteegh
Date: Thu Oct 6 15:32:28 2022 +0200
Branches: refactor-mesh-uv-map-generic
https://developer.blender.org/rB846fc7fa229adb9edacc2c580f54adbd3a93b565
Cleanup: Remove unused function.
BKE_mesh_calc_poly_uv_area( ) was already removed earlier in the branch, but
accidentally added back when merging with master.
===================================================================
M source/blender/blenkernel/intern/mesh_evaluate.cc
===================================================================
diff --git a/source/blender/blenkernel/intern/mesh_evaluate.cc b/source/blender/blenkernel/intern/mesh_evaluate.cc
index 60365860583..247122fd061 100644
--- a/source/blender/blenkernel/intern/mesh_evaluate.cc
+++ b/source/blender/blenkernel/intern/mesh_evaluate.cc
@@ -216,24 +216,6 @@ float BKE_mesh_calc_area(const Mesh *me)
return total_area;
}
-float BKE_mesh_calc_poly_uv_area(const MPoly *mpoly, const float (*uv_array)[2] )
-{
-
- int i, l_iter = mpoly->loopstart;
- float area;
- float(*vertexcos)[2] = (float(*)[2])BLI_array_alloca(vertexcos, size_t(mpoly->totloop));
-
- /* pack vertex cos into an array for area_poly_v2 */
- for (i = 0; i < mpoly->totloop; i++, l_iter++) {
- copy_v2_v2(vertexcos[i], uv_array[l_iter]);
- }
-
- /* finally calculate the area */
- area = area_poly_v2(vertexcos, uint(mpoly->totloop));
-
- return area;
-}
-
static float UNUSED_FUNCTION(mesh_calc_poly_volume_centroid)(const MPoly *mpoly,
const MLoop *loopstart,
const MVert *mvarray,
More information about the Bf-blender-cvs
mailing list