mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-15 22:11:17 +08:00
69 lines
2.8 KiB
Plaintext
Executable File
69 lines
2.8 KiB
Plaintext
Executable File
-- Created on: 2003-03-18
|
|
-- Created by: Oleg FEDYAEV
|
|
-- Copyright (c) 2003-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.
|
|
|
|
|
|
class Tool from GeomLib
|
|
|
|
---Purpose: The methods of this class compute the parameter(s) of a given point on a
|
|
-- curve or a surface. The point must be located either
|
|
-- on the curve (surface) itself or relatively to the latter at
|
|
-- a distance less than the tolerance value.
|
|
-- Return FALSE if the point is beyond the tolerance
|
|
-- limit or if computation fails.
|
|
-- Max Tolerance value is currently limited to 1.e-4 for
|
|
-- geometrical curves and 1.e-3 for BSpline, Bezier and
|
|
-- other parametrical curves.
|
|
|
|
uses Surface from Geom,
|
|
Curve from Geom,
|
|
Curve from Geom2d,
|
|
Pnt from gp,
|
|
Pnt2d from gp,
|
|
Real from Standard,
|
|
Boolean from Standard
|
|
is
|
|
|
|
Parameter(myclass; Curve : in Curve from Geom;
|
|
Point : in Pnt from gp;
|
|
Tolerance : in Real from Standard;
|
|
U : out Real from Standard)
|
|
returns Boolean from Standard;
|
|
---Purpose:
|
|
-- Extracts the parameter of a 3D point lying on a 3D curve
|
|
-- or at a distance less than the tolerance value.
|
|
|
|
Parameters(myclass; Surface : in Surface from Geom;
|
|
Point : in Pnt from gp;
|
|
Tolerance : in Real from Standard;
|
|
U : out Real from Standard;
|
|
V : out Real from Standard)
|
|
returns Boolean from Standard;
|
|
---Purpose: Extracts the parameter of a 3D point lying on a surface
|
|
-- or at a distance less than the tolerance value.
|
|
|
|
Parameter(myclass; Curve : in Curve from Geom2d;
|
|
Point : in Pnt2d from gp;
|
|
Tolerance : in Real from Standard;
|
|
U : out Real from Standard)
|
|
returns Boolean from Standard;
|
|
---Purpose: Extracts the parameter of a 2D point lying on a 2D curve
|
|
-- or at a distance less than the tolerance value.
|
|
|
|
end Tool;
|