65 layout->addItem(
new QSpacerItem(10, 10, QSizePolicy::Expanding, QSizePolicy::Expanding), 2, 0, 1, 2);
90 mesh->add_property(origPositions,
"SmootherPlugin_Original_Positions");
96 for (v_it = mesh->vertices_begin(); v_it != v_end; ++v_it) {
97 mesh->property(origPositions, *v_it) = mesh->point(*v_it);
101 for (v_it = mesh->vertices_begin(); v_it != v_end; ++v_it) {
111 for (; voh_it.is_valid(); ++voh_it) {
114 point += mesh->property(origPositions, mesh->to_vertex_handle(*voh_it));
118 if (mesh->is_boundary(*voh_it)) {
125 point /= mesh->valence(*v_it);
129 mesh->point(*v_it) = point;
136 mesh->remove_property(origPositions);
151 mesh->add_property(origPositions,
"SmootherPlugin_Original_Positions");
157 for (v_it = mesh->vertices_begin(); v_it != v_end; ++v_it) {
158 mesh->property(origPositions, *v_it) = mesh->point(*v_it);
162 for (v_it = mesh->vertices_begin(); v_it != v_end; ++v_it) {
171 for (; voh_it.is_valid(); ++voh_it) {
173 point += mesh->property(origPositions, mesh->to_vertex_handle(*voh_it));
177 if (mesh->is_boundary(*voh_it)) {
185 point /= mesh->valence(*v_it);
189 mesh->point(*v_it) = point;
196 mesh->remove_property(origPositions);
204 emit log(
LOGERR,
"Data type not supported.");