Salome HOME
NPAL17269: Performance pb. when creating a group with GUI.
[modules/geom.git] / src / PARTITION / Partition_Inter2d.cdl
index 356735c2038419fd25b203ce4b4d5e42d898a729..371186e5897b68db34c2213ff559b2cf251956e5 100644 (file)
@@ -1,8 +1,48 @@
--- File   :    Partition_Inter2d.cdl
--- Created:    Thu Aug 02 16:07:39 2001
--- Author :    Benedicte MARTIN
---             
----Copyright:  OPEN CASCADE 2001
+// Copyright (C) 2005  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
+//
+--  GEOM PARTITION : partition algorithm
+--
+--  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   : Partition_Inter2d.cdl
+--  Author : Benedicte MARTIN
+--  Module : GEOM
 
 class Inter2d from Partition 
 
@@ -41,13 +81,30 @@ is
     
     AddVonE(myclass; V : Vertex from TopoDS;
                      E1,E2 : Edge from TopoDS;
-                     AsDes : mutable AsDes from BRepAlgo)
+                     AsDes : mutable AsDes from BRepAlgo;
+                     F: Face from TopoDS)
         returns Vertex from TopoDS;
         ---Purpose: Put V in AsDes as intersection of E1 and E2.
         --          Check that vertex equal to V already exists on one
         --          of edges, in  such  a  case,  V  is  not added but
         --          existing vertex is updated to  be on E1 and E2 and
-        --          is returned insead of V. 
+        --          is returned insead of V.
+        --          Optional F is a face  E1  and  E2  are on. If F is
+        --          provided, it is used  to  find  new vertices on E1
+        --          and E2 resulting from intersection of new edges on
+        --          the two  other  faces  the  F  interferes with and
+        --          through which E1 and  E2  pass  too. This helps to
+        --          avoid small edges.
+
+
+    GetTolerance(myclass; theV : Vertex from TopoDS;
+                          theU : Real from Standard;
+                          theE : Edge from TopoDS;
+                          theAsDes : AsDes from BRepAlgo)
+        returns Real from Standard;
+        ---Purpose: Returns  tolerance  theV   must   have  atfer  its
+        --          addition to theE with  theU parameter. theAsDes is
+        --          used to find pcurves of theE
 
 end Inter2d;