Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/mesh/editmesh_tools.c
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| /* api callbacks */ | /* api callbacks */ | ||||
| ot->exec = edbm_do_smooth_laplacian_vertex_exec; | ot->exec = edbm_do_smooth_laplacian_vertex_exec; | ||||
| ot->poll = ED_operator_editmesh; | ot->poll = ED_operator_editmesh; | ||||
| /* flags */ | /* flags */ | ||||
| ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ||||
| RNA_def_int( | RNA_def_int( | ||||
| ot->srna, "repeat", 1, 1, 1000, "Number of iterations to smooth the mesh", "", 1, 200); | ot->srna, "repeat", 1, 1, 1000, "Repeat", "Number of iterations to smooth the mesh", 1, 200); | ||||
| RNA_def_float( | RNA_def_float( | ||||
| ot->srna, "lambda_factor", 1.0f, 1e-7f, 1000.0f, "Lambda factor", "", 1e-7f, 1000.0f); | ot->srna, "lambda_factor", 1.0f, 1e-7f, 1000.0f, "Lambda Factor", "Smooth factor effect", 1e-7f, 1000.0f); | ||||
| RNA_def_float(ot->srna, | RNA_def_float(ot->srna, | ||||
| "lambda_border", | "lambda_border", | ||||
| 5e-5f, | 5e-5f, | ||||
| 1e-7f, | 1e-7f, | ||||
| 1000.0f, | 1000.0f, | ||||
| "Lambda Border", | |||||
| "Lambda factor in border", | "Lambda factor in border", | ||||
| "", | |||||
| 1e-7f, | 1e-7f, | ||||
| 1000.0f); | 1000.0f); | ||||
| WM_operatortype_props_advanced_begin(ot); | WM_operatortype_props_advanced_begin(ot); | ||||
| RNA_def_boolean(ot->srna, "use_x", true, "Smooth X Axis", "Smooth object along X axis"); | RNA_def_boolean(ot->srna, "use_x", true, "Smooth X Axis", "Smooth object along X axis"); | ||||
| RNA_def_boolean(ot->srna, "use_y", true, "Smooth Y Axis", "Smooth object along Y axis"); | RNA_def_boolean(ot->srna, "use_y", true, "Smooth Y Axis", "Smooth object along Y axis"); | ||||
| RNA_def_boolean(ot->srna, "use_z", true, "Smooth Z Axis", "Smooth object along Z axis"); | RNA_def_boolean(ot->srna, "use_z", true, "Smooth Z Axis", "Smooth object along Z axis"); | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||