]> SALOME platform Git repositories - modules/geom.git/blobdiff - src/GEOMUtils/GEOMUtils.hxx
Salome HOME
0022616: [CEA 1038] Improve the quality of stl and vtk exports
[modules/geom.git] / src / GEOMUtils / GEOMUtils.hxx
index b35495b62606dac7f5c3552df530cc4903a5aac6..95c0e7c0f0201531a4a10d9912e00fc8fb5913c9 100644 (file)
@@ -52,7 +52,8 @@ inline Standard_Boolean IsEqual (const TopoDS_Shape& S1, const TopoDS_Shape& S2)
   return S1.IsSame(S2);
 }
 
-namespace GEOMUtils {
+namespace GEOMUtils
+{
 
   typedef std::vector<std::string> NodeLinks;
   typedef std::map<std::string, NodeLinks> LevelInfo;
@@ -77,7 +78,7 @@ namespace GEOMUtils {
    *       extracted from a shape.
    */
   Standard_EXPORT gp_Vec GetVector (const TopoDS_Shape& theShape,
-                                           Standard_Boolean doConsiderOrientation);
+                                   Standard_Boolean doConsiderOrientation);
 
   /*!
    * \brief Sort shapes in the list by their coordinates.
@@ -99,7 +100,7 @@ namespace GEOMUtils {
    * \brief Sort shapes by their centers of mass, using formula X*999 + Y*99 + Z*0.9
    */
   Standard_EXPORT void SortShapes (TopTools_ListOfShape& SL,
-                                          const Standard_Boolean isOldSorting = Standard_True);
+                                  const Standard_Boolean isOldSorting = Standard_True);
 
   /*!
    * \brief Convert TopoDS_COMPSOLID to TopoDS_COMPOUND.
@@ -120,7 +121,7 @@ namespace GEOMUtils {
    * \param theList Output parameter.
    */
   Standard_EXPORT void AddSimpleShapes (const TopoDS_Shape& theShape,
-                                               TopTools_ListOfShape& theList);
+                                       TopTools_ListOfShape& theList);
 
   /*!
    * \brief Build a triangulation on \a theShape if it is absent.
@@ -128,7 +129,7 @@ namespace GEOMUtils {
    * \retval bool Returns false if the shape has no faces, i.e. impossible to build triangulation.
    */
   Standard_EXPORT bool CheckTriangulation (const TopoDS_Shape& theShape);
-
+  
   /*!
    * \brief Return type of shape for explode. In case of compound it will be a type of its first sub shape.
    * \param theShape The shape to get type of.
@@ -144,7 +145,7 @@ namespace GEOMUtils {
    * \retval TopoDS_Shape Returns the found edge or an empty shape if multiple edges found.
    */
   Standard_EXPORT TopoDS_Shape GetEdgeNearPoint (const TopoDS_Shape&  theShape,
-                                                        const TopoDS_Vertex& thePoint);
+                                                const TopoDS_Vertex& thePoint);
 
   /*!
    * \brief Compute precise bounding box of the shape based on the rough bounding box.
@@ -153,8 +154,7 @@ namespace GEOMUtils {
    * \param theBox rough bounding box on input; precise bounding box on output.
    * \retval Standard_True in case of success; Standard_False otherwise.
    */
-  Standard_EXPORT Standard_Boolean PreciseBoundingBox
-                          (const TopoDS_Shape &theShape, Bnd_Box &theBox);
+  Standard_EXPORT Standard_Boolean PreciseBoundingBox(const TopoDS_Shape &theShape, Bnd_Box &theBox);
 
   /*!
    * \brief Computes minumal distance between two shapes for singular cases
@@ -166,11 +166,10 @@ namespace GEOMUtils {
    * \param Ptmp2 the output result point on the second shape
    * \retval negative value if it is not a singular case; actual distance for singular case.
    */
-  Standard_EXPORT Standard_Real GetMinDistanceSingular
-                               (const TopoDS_Shape& aSh1,
-                                const TopoDS_Shape& aSh2,
-                                gp_Pnt& Ptmp1, gp_Pnt& Ptmp2);
-
+  Standard_EXPORT Standard_Real GetMinDistanceSingular(const TopoDS_Shape& aSh1,
+                                                      const TopoDS_Shape& aSh2,
+                                                      gp_Pnt& Ptmp1, gp_Pnt& Ptmp2);
+  
   /*!
    * \brief Computes minumal distance between two shapes.
    *
@@ -180,11 +179,10 @@ namespace GEOMUtils {
    * \param thePnt2 the output result point on the second shape
    * \retval negative value in case of failure; otherwise the real distance.
    */
-  Standard_EXPORT Standard_Real GetMinDistance
-                               (const TopoDS_Shape& theShape1,
-                                const TopoDS_Shape& theShape2,
-                                gp_Pnt& thePnt1, gp_Pnt& thePnt2);
-
+  Standard_EXPORT Standard_Real GetMinDistance(const TopoDS_Shape& theShape1,
+                                              const TopoDS_Shape& theShape2,
+                                              gp_Pnt& thePnt1, gp_Pnt& thePnt2);
+  
   /*!
    * \brief Returns the point clicked in 3D view.
    *