-- Created on: 1994-10-07 -- Created by: Bruno DUMORTIER -- Copyright (c) 1994-1999 Matra Datavision -- Copyright (c) 1999-2014 OPEN CASCADE SAS -- -- This file is part of Open CASCADE Technology software library. -- -- This library is free software; you can redistribute it and/or modify it under -- the terms of the GNU Lesser General Public License version 2.1 as published -- by the Free Software Foundation, with special exception defined in the file -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT -- distribution for complete text of the license and disclaimer of any warranty. -- -- Alternatively, this file may be used under the terms of Open CASCADE -- commercial license or contractual agreement. class ComputeApproxOnPolarSurface from ProjLib ---Purpose: Approximate the projection of a 3d curve on an -- polar surface and stores the result in Approx. -- The result is a 2d curve. The evaluation of the -- current point of the 2d curve is done with the -- evaluation of the extrema P3d - Surface. uses HCurve from Adaptor3d, HCurve2d from Adaptor2d, HSurface from Adaptor3d, BSplineCurve from Geom2d, Curve from Geom2d is Create returns ComputeApproxOnPolarSurface from ProjLib; Create(C : HCurve from Adaptor3d ; S : HSurface from Adaptor3d ; Tol : Real = 1.0e-4) returns ComputeApproxOnPolarSurface from ProjLib; -- Create(C : HCurve from Adaptor3d ; -- S : HSurface from Adaptor3d) ---purpose: pour etre en phase avec ProjOnSurf -- returns ComputeApproxOnPolarSurface from ProjLib; Create(InitCurve2d : HCurve2d from Adaptor2d ; C : HCurve from Adaptor3d ; S : HSurface from Adaptor3d ; Tol : Real) returns ComputeApproxOnPolarSurface from ProjLib; Create(InitCurve2d : HCurve2d from Adaptor2d ; InitCurve2dBis : HCurve2d from Adaptor2d ; C : HCurve from Adaptor3d ; S : HSurface from Adaptor3d ; Tol : Real) returns ComputeApproxOnPolarSurface from ProjLib; Perform(me : in out ; InitCurve2d : HCurve2d from Adaptor2d; C : HCurve from Adaptor3d ; S : HSurface from Adaptor3d ) returns BSplineCurve from Geom2d; BuildInitialCurve2d(me : in out ; Curve : HCurve from Adaptor3d ; S : HSurface from Adaptor3d ) returns HCurve2d from Adaptor2d; ProjectUsingInitialCurve2d(me : in out ; Curve : HCurve from Adaptor3d ; S : HSurface from Adaptor3d ; InitCurve2d : HCurve2d from Adaptor2d ) returns BSplineCurve from Geom2d; BSpline(me) returns BSplineCurve from Geom2d ; Curve2d(me) returns Curve from Geom2d ; IsDone(me) returns Boolean from Standard; fields myProjIsDone : Boolean from Standard; myTolerance : Real from Standard; myBSpline : BSplineCurve from Geom2d ; my2ndCurve : Curve from Geom2d ; -- myInitCurve2d : HCurve2d from Adaptor3d; end ComputeApproxOnPolarSurface;