1 -- Created on: 2003-03-18
2 -- Created by: Oleg FEDYAEV
3 -- Copyright (c) 2003-2014 OPEN CASCADE SAS
5 -- This file is part of Open CASCADE Technology software library.
7 -- This library is free software; you can redistribute it and/or modify it under
8 -- the terms of the GNU Lesser General Public License version 2.1 as published
9 -- by the Free Software Foundation, with special exception defined in the file
10 -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 -- distribution for complete text of the license and disclaimer of any warranty.
13 -- Alternatively, this file may be used under the terms of Open CASCADE
14 -- commercial license or contractual agreement.
16 class Tool from GeomLib
18 ---Purpose: Provides various methods with Geom2d and Geom curves and surfaces.
19 -- The methods of this class compute the parameter(s) of a given point on a
20 -- curve or a surface. The point must be located either
21 -- on the curve (surface) itself or relatively to the latter at
22 -- a distance less than the tolerance value.
23 -- Return FALSE if the point is beyond the tolerance
24 -- limit or if computation fails.
25 -- Max Tolerance value is currently limited to 1.e-4 for
26 -- geometrical curves and 1.e-3 for BSpline, Bezier and
27 -- other parametrical curves.
29 uses Surface from Geom,
38 Parameter(myclass; Curve : in Curve from Geom;
39 Point : in Pnt from gp;
40 Tolerance : in Real from Standard;
41 U : out Real from Standard)
42 returns Boolean from Standard;
44 -- Extracts the parameter of a 3D point lying on a 3D curve
45 -- or at a distance less than the tolerance value.
47 Parameters(myclass; Surface : in Surface from Geom;
48 Point : in Pnt from gp;
49 Tolerance : in Real from Standard;
50 U : out Real from Standard;
51 V : out Real from Standard)
52 returns Boolean from Standard;
53 ---Purpose: Extracts the parameter of a 3D point lying on a surface
54 -- or at a distance less than the tolerance value.
56 Parameter(myclass; Curve : in Curve from Geom2d;
57 Point : in Pnt2d from gp;
58 Tolerance : in Real from Standard;
59 U : out Real from Standard)
60 returns Boolean from Standard;
61 ---Purpose: Extracts the parameter of a 2D point lying on a 2D curve
62 -- or at a distance less than the tolerance value.