Salome HOME
Merge branch 'V9_9_BR'
[modules/smesh.git] / src / SMESHUtils / SMESH_ControlPnt.hxx
index e8df653f89b6faa76675d1441c1ec96b3bb6d049..fef9cbaf27f4d4f6ea94bd5b061e5b05c4fc844a 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2019  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2022  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -42,11 +42,9 @@ namespace SMESHUtils
   {
     ControlPnt()
       : gp_Pnt(), size(0) {}
-    ControlPnt( const gp_Pnt& aPnt, double theSize)
+    ControlPnt( const gp_Pnt& aPnt, double theSize=0)
       : gp_Pnt( aPnt ), size( theSize ) {}
-    ControlPnt(double theX,double theY,double theZ)
-      : gp_Pnt(theX, theY, theZ), size(0) {}
-    ControlPnt(double theX,double theY,double theZ, double theSize)
+    ControlPnt(double theX,double theY,double theZ, double theSize=0)
       : gp_Pnt(theX, theY, theZ), size( theSize ) {}
 
     double Size() const { return size; };
@@ -57,20 +55,20 @@ namespace SMESHUtils
 
   // Functions to get sample point from shapes
   SMESHUtils_EXPORT void createControlPoints( const TopoDS_Shape&        theShape, 
-                            const double&              theSize, 
-                            std::vector< ControlPnt >& thePoints );
+                                              const double&              theSize, 
+                                              std::vector< ControlPnt >& thePoints );
 
-  SMESHUtils_EXPORT void createPointsSampleFromEdge( const TopoDS_Edge&       theEdge, 
-                                   const double&            theSize, 
-                                   std::vector<ControlPnt>& thePoints );
+  SMESHUtils_EXPORT void createPointsSampleFromEdge( const TopoDS_Edge&       theEdge,
+                                                     const double&            theSize,
+                                                     std::vector<ControlPnt>& thePoints );
 
-  SMESHUtils_EXPORT void createPointsSampleFromFace( const TopoDS_Face&       theFace, 
-                                   const double&            theSize, 
-                                   std::vector<ControlPnt>& thePoints );
+  SMESHUtils_EXPORT void createPointsSampleFromFace( const TopoDS_Face&       theFace,
+                                                     const double&            theSize,
+                                                     std::vector<ControlPnt>& thePoints );
 
-  SMESHUtils_EXPORT void createPointsSampleFromSolid( const TopoDS_Solid&      theSolid, 
-                                    const double&            theSize, 
-                                    std::vector<ControlPnt>& thePoints );
+  SMESHUtils_EXPORT void createPointsSampleFromSolid( const TopoDS_Solid&      theSolid,
+                                                      const double&            theSize,
+                                                      std::vector<ControlPnt>& thePoints );
 
 }
 #endif