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:
authorAlexander Pinzon <apinzonf@gmail.com>2012-06-05 22:53:47 +0400
committerAlexander Pinzon <apinzonf@gmail.com>2012-06-05 22:53:47 +0400
commit083b8494084f3521934c4d786499cb9cb16eff07 (patch)
tree231d7dfa1a34ec7227374380ed708dab10f85a3e /source/blender/editors/mesh/editmesh_tools.c
parent5fd10574c0f56eae3ab2cd4b937e3399846c1615 (diff)
Add lambda factor for boundaries in UI.
Diffstat (limited to 'source/blender/editors/mesh/editmesh_tools.c')
-rw-r--r--source/blender/editors/mesh/editmesh_tools.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/editors/mesh/editmesh_tools.c b/source/blender/editors/mesh/editmesh_tools.c
index da9d9d4a42b..e946274647d 100644
--- a/source/blender/editors/mesh/editmesh_tools.c
+++ b/source/blender/editors/mesh/editmesh_tools.c
@@ -1604,6 +1604,7 @@ static int edbm_do_smooth_laplacian_vertex_exec(bContext *C, wmOperator *op)
int i, repeat;
float clipdist = 0.0f;
float lambda = 0.1f;
+ float lambda_border = 0.1f;
float min_area = 0.00001f;
BMIter fiter;
BMFace *f;
@@ -1645,14 +1646,15 @@ static int edbm_do_smooth_laplacian_vertex_exec(bContext *C, wmOperator *op)
repeat = RNA_int_get(op->ptr, "repeat");
lambda = RNA_float_get(op->ptr, "lambda");
+ lambda_border = RNA_float_get(op->ptr, "lambda_border");
min_area = RNA_float_get(op->ptr, "min_area");
if (!repeat)
repeat = 1;
for (i = 0; i < repeat; i++) {
if (!EDBM_op_callf(em, op,
- "vertexsmoothlaplacian verts=%hv lambda=%f min_area=%f mirror_clip_x=%b mirror_clip_y=%b mirror_clip_z=%b clipdist=%f",
- BM_ELEM_SELECT, lambda, min_area, mirrx, mirry, mirrz, clipdist))
+ "vertexsmoothlaplacian verts=%hv lambda=%f lambda_border=%f min_area=%f mirror_clip_x=%b mirror_clip_y=%b mirror_clip_z=%b clipdist=%f",
+ BM_ELEM_SELECT, lambda, lambda_border, min_area, mirrx, mirry, mirrz, clipdist))
{
return OPERATOR_CANCELLED;
}
@@ -1687,6 +1689,8 @@ void MESH_OT_vertices_smooth_laplacian(wmOperatorType *ot)
"Number of iterations to smooth the mesh", "", 1, 50);
RNA_def_float(ot->srna, "lambda", 0.00005f, 0.0000001f, 100.0f,
"Lambda factor", "", 0.0000001f, 100.0f);
+ RNA_def_float(ot->srna, "lambda_border", 0.00005f, 0.0000001f, 100.0f,
+ "Lambda factor in border", "", 0.0000001f, 100.0f);
RNA_def_float(ot->srna, "min_area", 0.00001f, 0.0000000000000001f, 100.0f,
"Minimum area permitted", "", 0.0000000000000001f, 100.0f);