-- Created on: 1995-10-19 -- Created by: Andre LIEUTIER -- Copyright (c) 1995-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 GtoCConstraint from Plate ---Purpose: define a G1, G2 or G3 constraint on the Plate -- uses XY from gp, XYZ from gp, D1 from Plate, D2 from Plate, D3 from Plate, PinpointConstraint from Plate is Create(ref : GtoCConstraint from Plate) returns GtoCConstraint; Create(point2d : XY ; D1S , D1T : D1 ) returns GtoCConstraint; -- G1 constraint: -- D1S : first derivative of S, the surface we want to correct -- D1T : first derivative of the reference surface Create(point2d : XY ; D1S , D1T : D1; nP : XYZ from gp ) returns GtoCConstraint; -- G1 constraint: -- D1S : first derivative of S, the surface we want to correct -- D1T : first derivative of the reference surface -- nP : normal vector to tge Plane in which we want the correction to occur Create(point2d : XY from gp; D1S , D1T : D1 from Plate; D2S, D2T : D2 from Plate) returns GtoCConstraint; -- G2 constraint: -- D1S : first derivative of S, the surface we want to correct -- D1T : first derivative of the reference surface -- D2S : second derivative of S, the surface we want to correct -- D2T : second derivative of the reference surface Create(point2d : XY from gp; D1S , D1T : D1 from Plate; D2S, D2T : D2 from Plate; nP : XYZ from gp ) returns GtoCConstraint; -- G2 constraint: -- D1S : first derivative of S, the surface we want to correct -- D1T : first derivative of the reference surface -- D2S : second derivative of S, the surface we want to correct -- D2T : second derivative of the reference surface -- nP : normal vector to tge Plane in which we want the correction to occur Create(point2d : XY from gp; D1S , D1T : D1 from Plate; D2S, D2T : D2 from Plate; D3S, D3T : D3 from Plate) returns GtoCConstraint; -- G3 constraint: -- D1S : first derivative of S, the surface we want to correct -- D1T : first derivative of the reference surface -- D2S : second derivative of S, the surface we want to correct -- D2T : second derivative of the reference surface -- D3S : third derivative of S, the surface we want to correct -- D3T : third derivative of the reference surface Create(point2d : XY from gp; D1S , D1T : D1 from Plate; D2S, D2T : D2 from Plate; D3S, D3T : D3 from Plate; nP : XYZ from gp ) returns GtoCConstraint; -- G3 constraint: -- D1S : first derivative of S, the surface we want to correct -- D1T : first derivative of the reference surface -- D2S : second derivative of S, the surface we want to correct -- D2T : second derivative of the reference surface -- D3S : third derivative of S, the surface we want to correct -- D3T : third derivative of the reference surface -- nP : normal vector to tge Plane in which we want the correction to occur -- Accessors : nb_PPC(me) returns Integer; ---C++: inline ---C++: return const & GetPPC(me; Index: Integer) returns PinpointConstraint; -- "C style" Index : Index : 0 --> nb_PPC-1 -- ---C++: inline ---C++: return const & D1SurfInit(me) returns D1; -- ---C++: inline ---C++: return const & fields myPPC : PinpointConstraint[9]; myD1SurfInit : D1; pnt2d : XY ; nb_PPConstraints : Integer; end;