From 05c4abbebf824bbbbaaab135acf6c888662dff69 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Mon, 11 Jul 2016 21:16:15 +0200 Subject: [PATCH] #2989 creaMaracasVisu Bug New Normal - ManualContourModel duplicate last point of contour lstPoints --- bbtk/src/bbcreaMaracasVisuManualContourModel_Box.cxx | 3 ++- .../wxWindows/widgets/manualContour/manualContourModel.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bbtk/src/bbcreaMaracasVisuManualContourModel_Box.cxx b/bbtk/src/bbcreaMaracasVisuManualContourModel_Box.cxx index 0c59a4c..d9e1663 100644 --- a/bbtk/src/bbcreaMaracasVisuManualContourModel_Box.cxx +++ b/bbtk/src/bbcreaMaracasVisuManualContourModel_Box.cxx @@ -47,7 +47,8 @@ void ManualContourModel_Box::Process() size = bbGetInputLstControlPointsX().size(); for (i=0;iInsertPoint( bbGetInputLstControlPointsX()[i] , bbGetInputLstControlPointsY()[i] , bbGetInputLstControlPointsZ()[i] ); +// m->InsertPoint( bbGetInputLstControlPointsX()[i] , bbGetInputLstControlPointsY()[i] , bbGetInputLstControlPointsZ()[i] ); + m->AddPoint( bbGetInputLstControlPointsX()[i] , bbGetInputLstControlPointsY()[i] , bbGetInputLstControlPointsZ()[i] ); } // for m->UpdateSpline(); size = bbGetInputNbPoints(); diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualContourModel.cpp b/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualContourModel.cpp index 7e3e8b8..b57c3b3 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualContourModel.cpp +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualContourModel.cpp @@ -358,7 +358,7 @@ void manualContourModel::UpdateSpline() // virtual void manualContourModel::GetSpline_i_Point(int i, double *x, double *y, double *z) // virtal { GetSpline_t_Point(i*_delta_JSTG,x,y,z); - +} // ---------------------------------------------------------------------------- -- 2.47.1