[Bf-blender-cvs] [c804a4d] soc-2014-shapekey: Small updates on bmesh_pe
Grigory Revzin
noreply at git.blender.org
Tue May 13 14:07:30 CEST 2014
Commit: c804a4daeb184d357e92e7aba69babb231e92342
Author: Grigory Revzin
Date: Sun May 4 19:08:39 2014 +0400
https://developer.blender.org/rBc804a4daeb184d357e92e7aba69babb231e92342
Small updates on bmesh_pe
===================================================================
M source/blender/bmesh/intern/bmesh_pe.c
M source/blender/bmesh/intern/bmesh_pe.h
===================================================================
diff --git a/source/blender/bmesh/intern/bmesh_pe.c b/source/blender/bmesh/intern/bmesh_pe.c
index 3a7b5aa..ecf794d 100644
--- a/source/blender/bmesh/intern/bmesh_pe.c
+++ b/source/blender/bmesh/intern/bmesh_pe.c
@@ -205,7 +205,7 @@ void BM_prop_dist_calc(BMesh *bm, float loc_to_world_mtx[3][3], float proj_plane
int *vindexes;
if (bm->totvertsel == bm->totvert) {
- memset(dists, 0.0f, sizeof(float)* bm->totvert);
+ memset(dists, 0.0f, sizeof(float) * bm->totvert);
return;
}
diff --git a/source/blender/bmesh/intern/bmesh_pe.h b/source/blender/bmesh/intern/bmesh_pe.h
index 11c905a..954a586 100644
--- a/source/blender/bmesh/intern/bmesh_pe.h
+++ b/source/blender/bmesh/intern/bmesh_pe.h
@@ -23,7 +23,12 @@
typedef struct BMesh BMesh;
+/* both of these calculate distances to closest selected vertices - after any kind of transform defined by the matrix */
+
+/* the distance is calculated along the surface from the selected vertices */
void BM_prop_dist_calc_connected(BMesh *bm, float loc_to_world_mtx[3][3], float *dists);
+/* the distance is calculated either by a bounding sphere or a cicle
+ * in the projection plane from the closest selected vertex */
void BM_prop_dist_calc(BMesh *bm, float loc_to_world_mtx[3][3], float proj_plane_n[3], float dists[]);
More information about the Bf-blender-cvs
mailing list