From: skv Date: Wed, 30 Apr 2014 06:53:36 +0000 (+0400) Subject: 0022475: EDF 2811 GEOM: Features for "Smoothing Surface" function X-Git-Tag: V7_4_0rc1~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6e40d121f0155635232bebbc4cb660459ce5c13e;p=modules%2Fgeom.git 0022475: EDF 2811 GEOM: Features for "Smoothing Surface" function --- diff --git a/doc/salome/gui/GEOM/images/smoothingsurface_dlg.png b/doc/salome/gui/GEOM/images/smoothingsurface_dlg.png index 4605175c2..44c027ea4 100644 Binary files a/doc/salome/gui/GEOM/images/smoothingsurface_dlg.png and b/doc/salome/gui/GEOM/images/smoothingsurface_dlg.png differ diff --git a/doc/salome/gui/GEOM/input/creating_smoothingsurface.doc b/doc/salome/gui/GEOM/input/creating_smoothingsurface.doc index a16c2da58..5d6fb4b0c 100644 --- a/doc/salome/gui/GEOM/input/creating_smoothingsurface.doc +++ b/doc/salome/gui/GEOM/input/creating_smoothingsurface.doc @@ -7,7 +7,7 @@ Advanced - > SmoothingSurface To create a surface it is necessary to specify the \b Name of the surface, the list of \b Points from which it is approximated and some plate approximation parameters such as: Max nbr of -Bezier pieces, Max BSpline surface degree and Max plate criterion value. +Bezier pieces, Max BSpline surface degree and 3D tolerance of initial approximation. And then press "Apply" or "Apply & Close" button. \note The dialog accepts compounds of points as well as single nodes. @@ -18,7 +18,13 @@ The result of the operation will be a GEOM_Object(Surface). - \em thelPoints list of points. Compounds of points are accepted as well - \em theNbMax maximum number of Bezier pieces in the resulting surface - \em theDegMax maximum degree of the resulting BSpline surface -- \em theDMax specifies maximum value of the GeomPlate_PlateG0Criterion criterion +- \em theDMax specifies 3D tolerance of initial approximation + +\note 3D tolerance of initial approximation represents a tolerance of +initial plate surface approximation. If this parameter is equal to 0 (default +value) it is computed. In this case an error of initial plate surface +computation is used as the approximation tolerance. This error represents a +maximal distance between computed plate surface and given points. \image html smoothingsurface_dlg.png diff --git a/src/AdvancedEngine/GEOMImpl_SmoothingSurfaceDriver.cxx b/src/AdvancedEngine/GEOMImpl_SmoothingSurfaceDriver.cxx index ef1b732ae..2b0345522 100644 --- a/src/AdvancedEngine/GEOMImpl_SmoothingSurfaceDriver.cxx +++ b/src/AdvancedEngine/GEOMImpl_SmoothingSurfaceDriver.cxx @@ -262,7 +262,7 @@ GetCreationInformation(std::string& theOperationName, AddParam(theParams, "Max nbr of Bezier pieces", aCI.GetNbMax()); AddParam(theParams, "Max BSpline surface degree", aCI.GetDegMax()); - AddParam(theParams, "Max plate criterion value", aCI.GetDMax()); + AddParam(theParams, "3D tolerance of initial approximation", aCI.GetDMax()); } break; default: diff --git a/src/AdvancedGUI/AdvancedGUI_msg_en.ts b/src/AdvancedGUI/AdvancedGUI_msg_en.ts index 3e6b28602..06d2d0804 100644 --- a/src/AdvancedGUI/AdvancedGUI_msg_en.ts +++ b/src/AdvancedGUI/AdvancedGUI_msg_en.ts @@ -303,7 +303,7 @@ GEOM_SMOOTHINGSURFACE_ARG_D_MAX - Max plate criterion value + 3D tolerance of initial approximation GEOM_SMOOTHINGSURFACE_NO_POINTS diff --git a/src/GEOM_SWIG/geomBuilder.py b/src/GEOM_SWIG/geomBuilder.py index 79bfbb4a0..c1956a6b5 100644 --- a/src/GEOM_SWIG/geomBuilder.py +++ b/src/GEOM_SWIG/geomBuilder.py @@ -12695,12 +12695,17 @@ class geomBuilder(object, GEOM._objref_GEOM_Gen): # @param theNbMax maximum number of Bezier pieces in the resulting # surface. # @param theDegMax maximum degree of the resulting BSpline surface. - # @param theDMax specifies maximum value of the - # GeomPlate_PlateG0Criterion criterion. + # @param theDMax 3D tolerance of initial approximation. # @param theName Object name; when specified, this parameter is used # for result publication in the study. Otherwise, if automatic # publication is switched on, default value is used for result name. # @return New GEOM_Object, containing the created shape. + # @note 3D tolerance of initial approximation represents a tolerance of + # initial plate surface approximation. If this parameter is equal + # to 0 (default value) it is computed. In this case an error of + # initial plate surface computation is used as the approximation + # tolerance. This error represents a maximal distance between + # computed plate surface and given points. # # @ref tui_creation_smoothingsurface "Example" def MakeSmoothingSurface(self, thelPoints, theNbMax=2, theDegMax=8, @@ -12714,14 +12719,21 @@ class geomBuilder(object, GEOM._objref_GEOM_Gen): theNbMax maximum number of Bezier pieces in the resulting surface. theDegMax maximum degree of the resulting BSpline surface. - theDMax specifies maximum value of the - GeomPlate_PlateG0Criterion criterion. + theDMax 3D tolerance of initial approximation. theName Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. Returns: New GEOM_Object, containing the created shape. + + Note: + 3D tolerance of initial approximation represents a tolerance of + initial plate surface approximation. If this parameter is equal + to 0 (default value) it is computed. In this case an error of + initial plate surface computation is used as the approximation + tolerance. This error represents a maximal distance between + computed plate surface and given points. """ anObj = self.AdvOp.MakeSmoothingSurface(thelPoints, theNbMax, theDegMax, theDMax)