1 -- Created on: 1992-10-13
2 -- Created by: Laurent BUCHARD
3 -- Copyright (c) 1992-1999 Matra Datavision
4 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
6 -- This file is part of Open CASCADE Technology software library.
8 -- This library is free software; you can redistribute it and / or modify it
9 -- under the terms of the GNU Lesser General Public version 2.1 as published
10 -- by the Free Software Foundation, with special exception defined in the file
11 -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 -- distribution for complete text of the license and disclaimer of any warranty.
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
17 generic class ProjPCurGen from IntCurve (
19 TheCurveTool as any) -- as CurveTool from IntCurve(TheCurve)
21 ---Purpose: this class provide a tool which computes the parameter
22 -- of a point near a parametric curve.
28 POnCurv2d from Extrema
32 class TheCurveLocator instantiates CurveLocator from Extrema (
37 POnCurv2d from Extrema,
40 class TheLocateExtPC instantiates GenLocateExtPC from Extrema (
43 POnCurv2d from Extrema,
51 FindParameter(myclass; C: TheCurve;
53 Tol: Real from Standard)
55 --- Purpose: Returns the parameter V of the point on the
56 -- parametric curve corresponding to the Point Pnt.
57 -- The Correspondance between Pnt and the point P(V)
58 -- on the parametric curve must be coherent with the
59 -- way of determination of the signed distance
60 -- between a point and the implicit curve.
61 -- Tol is the tolerance on the distance between a point
62 -- and the parametrised curve.
63 -- In that case, no bounds are given. The research of
64 -- the rigth parameter has to be made on the natural
65 -- parametric domain of the curve.
67 returns Real from Standard;
70 FindParameter(myclass; C: TheCurve;
72 LowParameter,HighParameter,Tol: Real from Standard)
74 --- Purpose: Returns the parameter V of the point on the
75 -- parametric curve corresponding to the Point Pnt.
76 -- The Correspondance between Pnt and the point P(V)
77 -- on the parametric curve must be coherent with the
78 -- way of determination of the signed distance
79 -- between a point and the implicit curve.
80 -- Tol is the tolerance on the distance between a point
81 -- and the parametrised curve.
82 -- LowParameter and HighParameter give the
83 -- boundaries of the interval in wich the parameter
84 -- certainly lies. These parameters are given to
85 -- implement a more efficient algoritm. So, it is not
86 -- necessary to check that the returned value verifies
87 -- LowParameter <= Value <= HighParameter.
89 returns Real from Standard;