Salome HOME
PAL12608: Add possibility to check geometry of a shape.
[modules/geom.git] / src / ARCHIMEDE / Archimede_VolumeSection.cxx
index fecd0f99920b56caadb1f50be01c56554c091377..ec5fbdbea6c752d9841c72221219bcbe79f0fbc0 100644 (file)
@@ -1,19 +1,36 @@
-using namespace std;
-//  File      : Archimede_VolumeSection.cxx
-//  Created   : Fri Feb 22 09:28:13 CET 2002
-//  Author    : PULV 
-
-//  Modified  : Fri Feb 22 09:28:13 CET 2002
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : GEOM
-//  Copyright : Open CASCADE 2002
+//  GEOM ARCHIMEDE : algorithm implementation
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+//
+//
+//  File   : Archimede_VolumeSection.cxx
+//  Author : Nicolas REJNERI
+//  Module : GEOM
 //  $Header$
 
+#include <Standard_OStream.hxx>
+
 #include "Archimede_VolumeSection.hxx"
 #include "utilities.h"
 
-#include <iostream.h>
 #include <BRepMesh_IncrementalMesh.hxx>
 #include <TopExp_Explorer.hxx>
 #include <TopLoc_Location.hxx>
@@ -103,8 +120,8 @@ void VolumeSection::CenterOfGravity()
        }
     }
   
-  // Creation du point d'initialisation, c'est à dire le centre de gravité 
-  //géométrique de la boite englobante
+  // Creation du point d'initialisation, c'est \80 dire le centre de gravit\89 
+  //g\89om\89trique de la boite englobante
   
   InitPoint.SetX(0.5 * (Xmin + Xmax));
   InitPoint.SetY(0.5 * (Ymin + Ymax));
@@ -138,7 +155,7 @@ Standard_Real VolumeSection::CalculateVolume(Standard_Real Elevation)
       const TColgp_Array1OfPnt& Nodes = Tr->Nodes();
       
       // Calcul des volumes de chaque triangle, de chaque face 
-      //en tenant compte des triangles coupés par le plan de section
+      //en tenant compte des triangles coup\89s par le plan de section
       
       for (i=1;i<=nbTriangles;i++) 
        {
@@ -362,7 +379,7 @@ gp_Pnt VolumeSection::Intersection(gp_Pnt P1,gp_Pnt P2,Standard_Real Hauteur)
   return Point;
 }
 
-//Fonction calculant le volume élémentaire de chaque tétraedre à partir de 3 points
+//Fonction calculant le volume \89l\89mentaire de chaque t\89traedre \80 partir de 3 points
 Standard_Real VolumeSection::ElementaryVolume(gp_Pnt P1,gp_Pnt P2,gp_Pnt P3)
 {
   Standard_Real Determinant;
@@ -389,3 +406,4 @@ void VolumeSection::getZ( double& min, double& max)
   min = Zmin;
   max = Zmax;
 }
+