0023830: BRepExtrema_DistShapeShape does not find intersection of face with edge
[occt.git] / src / math / math_FunctionSetRoot.cdl
index d6e77ca..e842d6b 100755 (executable)
@@ -1,8 +1,23 @@
--- File:       FunctionSetRoot.cdl
--- Created:    Tue May 14 14:32:21 1991
--- Author:     Laurent PAINNOT
---             <lpa@topsn3>
----Copyright:   Matra Datavision 1991, 1992
+-- Created on: 1991-05-14
+-- Created by: Laurent PAINNOT
+-- Copyright (c) 1991-1999 Matra Datavision
+-- Copyright (c) 1999-2012 OPEN CASCADE SAS
+--
+-- The content of this file is subject to the Open CASCADE Technology Public
+-- License Version 6.5 (the "License"). You may not use the content of this file
+-- except in compliance with the License. Please obtain a copy of the License
+-- at http://www.opencascade.org and read it completely before using this file.
+--
+-- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
+-- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
+--
+-- The Original Code and all software distributed under the License is
+-- distributed on an "AS IS" basis, without warranty of any kind, and the
+-- Initial Developer hereby disclaims all such warranties, including without
+-- limitation, any warranties of merchantability, fitness for a particular
+-- purpose or non-infringement. Please see the License for the specific terms
+-- and conditions governing the rights and limitations under the License.
+
 
 
 
@@ -67,7 +82,7 @@ is
 
     Create(F: in out FunctionSetWithDerivatives; StartingPoint: Vector;
           Tolerance: Vector; infBound, supBound: Vector;
-          NbIterations: Integer = 100)
+          NbIterations: Integer = 100; theStopOnDivergent : Boolean from Standard = Standard_False)
        ---Purpose: is used to improve the root of the function F
        --          from the initial guess StartingPoint.
        --          The maximum number of iterations allowed is given 
@@ -90,8 +105,8 @@ is
     
     
     Perform(me: in out; F: in out FunctionSetWithDerivatives;
-           StartingPoint: Vector;
-           infBound, supBound: Vector)
+        StartingPoint: Vector;
+        infBound, supBound: Vector; theStopOnDivergent : Boolean from Standard = Standard_False)
        ---Purpose: Improves the root of function F from the initial guess
        -- StartingPoint. infBound and supBound may be given to constrain the solution.
        -- Warning
@@ -216,6 +231,10 @@ is
 
     is static;
 
+    IsDivergent(me)
+      returns Boolean
+      is static;
+
     
 fields
 
@@ -245,5 +264,6 @@ Temp1            : Vector;
 Temp2            : Vector;
 Temp3            : Vector;
 Temp4            : Vector;
+myIsDivergent    : Boolean from Standard;
 
 end FunctionSetRoot;