[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [47590] branches/soc-2012-sushi/source/ blender/bmesh/operators/bmo_smooth_laplacian.c: I performed a proper management when selecting some vertices, we must detect the border with the flag BM_ELEM_SELECT in the faces around vert .
Alexander Pinzon
apinzonf at gmail.com
Thu Jun 7 22:43:32 CEST 2012
Revision: 47590
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=47590
Author: apinzonf
Date: 2012-06-07 20:43:26 +0000 (Thu, 07 Jun 2012)
Log Message:
-----------
I performed a proper management when selecting some vertices, we must detect the border with the flag BM_ELEM_SELECT in the faces around vert.
Modified Paths:
--------------
branches/soc-2012-sushi/source/blender/bmesh/operators/bmo_smooth_laplacian.c
Modified: branches/soc-2012-sushi/source/blender/bmesh/operators/bmo_smooth_laplacian.c
===================================================================
--- branches/soc-2012-sushi/source/blender/bmesh/operators/bmo_smooth_laplacian.c 2012-06-07 20:11:22 UTC (rev 47589)
+++ branches/soc-2012-sushi/source/blender/bmesh/operators/bmo_smooth_laplacian.c 2012-06-07 20:43:26 UTC (rev 47590)
@@ -104,10 +104,6 @@
nlEnd(NL_MATRIX);
nlEnd(NL_SYSTEM);
- if(bm->totvert <32){
- nlPrintMatrix();
- }
-
if (nlSolveAdvanced(NULL, NL_TRUE) ) {
vini = compute_volume(bm, op);
BMO_ITER (v, &siter, bm, op, "verts", BM_VERT) {
@@ -141,12 +137,19 @@
int vert_is_boundary(BMVert *v){
BMEdge *ed;
+ BMFace *f;
BMIter ei;
+ BMIter fi;
BM_ITER_ELEM(ed, &ei, v, BM_EDGES_OF_VERT) {
if(BM_edge_is_boundary(ed)){
return 1;
}
}
+ BM_ITER_ELEM (f, &fi, v, BM_FACES_OF_VERT) {
+ if(!BM_elem_flag_test(f, BM_ELEM_SELECT)){
+ return 1;
+ }
+ }
return 0;
}
More information about the Bf-blender-cvs
mailing list