1 -- File: ProjPCurGen.cdl
2 -- Created: Tue Oct 13 18:27:03 1992
3 -- Author: Laurent BUCHARD
5 ---Copyright: Matra Datavision 1992
10 generic class ProjPCurGen from IntCurve (
12 TheCurveTool as any) -- as CurveTool from IntCurve(TheCurve)
14 ---Purpose: this class provide a tool which computes the parameter
15 -- of a point near a parametric curve.
21 POnCurv2d from Extrema
25 class TheCurveLocator instantiates CurveLocator from Extrema (
30 POnCurv2d from Extrema,
33 class TheLocateExtPC instantiates GenLocateExtPC from Extrema (
36 POnCurv2d from Extrema,
44 FindParameter(myclass; C: TheCurve;
46 Tol: Real from Standard)
48 --- Purpose: Returns the parameter V of the point on the
49 -- parametric curve corresponding to the Point Pnt.
50 -- The Correspondance between Pnt and the point P(V)
51 -- on the parametric curve must be coherent with the
52 -- way of determination of the signed distance
53 -- between a point and the implicit curve.
54 -- Tol is the tolerance on the distance between a point
55 -- and the parametrised curve.
56 -- In that case, no bounds are given. The research of
57 -- the rigth parameter has to be made on the natural
58 -- parametric domain of the curve.
60 returns Real from Standard;
63 FindParameter(myclass; C: TheCurve;
65 LowParameter,HighParameter,Tol: Real from Standard)
67 --- Purpose: Returns the parameter V of the point on the
68 -- parametric curve corresponding to the Point Pnt.
69 -- The Correspondance between Pnt and the point P(V)
70 -- on the parametric curve must be coherent with the
71 -- way of determination of the signed distance
72 -- between a point and the implicit curve.
73 -- Tol is the tolerance on the distance between a point
74 -- and the parametrised curve.
75 -- LowParameter and HighParameter give the
76 -- boundaries of the interval in wich the parameter
77 -- certainly lies. These parameters are given to
78 -- implement a more efficient algoritm. So, it is not
79 -- necessary to check that the returned value verifies
80 -- LowParameter <= Value <= HighParameter.
82 returns Real from Standard;