From c4803c520b88a109be1a3afd9212a102b41bfdf6 Mon Sep 17 00:00:00 2001 From: Mike Taverne Date: Mon, 6 Apr 2009 19:12:50 +0200 Subject: [PATCH] Fixed deletepoint.cpp --- deletepickedpoint.cpp | 8 ++++++-- guismoothsurface.cpp | 9 +++++++-- operation.cpp | 2 ++ 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/deletepickedpoint.cpp b/deletepickedpoint.cpp index b16d811..b2e68ac 100644 --- a/deletepickedpoint.cpp +++ b/deletepickedpoint.cpp @@ -35,9 +35,13 @@ void DeletePickedPoint::operate() int N_newpoints; int N_newcells; - SetFeatureAngle(45); - SetEdgeAngle(15); + SetConvergence(0.0); + SetFeatureEdgeSmoothing(1); + SetFeatureAngle(45.0); + SetEdgeAngle(15.0); + SetBoundarySmoothing(1); DeletePoint_2(grid,nodeId,N_newpoints,N_newcells); + /* vtkIdType Boss, Peon1, Peon2; int BC=0; Boss=nodeId; diff --git a/guismoothsurface.cpp b/guismoothsurface.cpp index 20ea77f..44c7132 100644 --- a/guismoothsurface.cpp +++ b/guismoothsurface.cpp @@ -1208,8 +1208,13 @@ void GuiSmoothSurface::operate() getSelectedItems(ui.listWidget, bcs); CreateSpecialMapping toto; toto.SetInput(bcs,grid); - SetFeatureAngle (ui.doubleSpinBox_FeatureAngle->value()); - SetEdgeAngle (ui.doubleSpinBox_EdgeAngle->value()); + + SetConvergence(ui.doubleSpinBox_Convergence->value()); + SetFeatureEdgeSmoothing(ui.checkBox_FeatureEdgeSmoothing->checkState()); + SetFeatureAngle(ui.doubleSpinBox_FeatureAngle->value()); + SetEdgeAngle(ui.doubleSpinBox_EdgeAngle->value()); + SetBoundarySmoothing(ui.checkBox_BoundarySmoothing->checkState()); + UpdateMeshDensity(); UpdateNodeType(); updateActors(); diff --git a/operation.cpp b/operation.cpp index 8b35631..4c51f71 100644 --- a/operation.cpp +++ b/operation.cpp @@ -954,6 +954,8 @@ typedef struct _vtkMeshVertex int Operation::UpdateNodeType() { + cout<<"this->FeatureAngle="<FeatureAngle<EdgeAngle="<EdgeAngle<