1 // Created on: 1994-03-17
2 // Created by: Bruno DUMORTIER
3 // Copyright (c) 1994-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _GeomAPI_HeaderFile
18 #define _GeomAPI_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
27 class GeomAPI_ProjectPointOnCurve;
28 class GeomAPI_ProjectPointOnSurf;
29 class GeomAPI_ExtremaCurveCurve;
30 class GeomAPI_ExtremaCurveSurface;
31 class GeomAPI_ExtremaSurfaceSurface;
32 class GeomAPI_PointsToBSpline;
33 class GeomAPI_PointsToBSplineSurface;
34 class GeomAPI_Interpolate;
39 //! The GeomAPI package provides an Application
40 //! Programming Interface for the Geometry.
42 //! The API is a set of classes and methods aiming to
45 //! * High level and simple calls for the most common
48 //! * Keeping an access on the low-level
49 //! implementation of high-level calls.
51 //! The API provides classes to call the algorithmes
54 //! * The constructors of the classes provides the
55 //! different constructions methods.
57 //! * The class keeps as fields the different tools
58 //! used by the algorithmes
60 //! * The class provides a casting method to get
61 //! automatically the result with a function-like
64 //! For example to evaluate the distance <D> between a
65 //! point <P> and a curve <C>, one can writes :
67 //! D = GeomAPI_ProjectPointOnCurve(P,C);
71 //! GeomAPI_ProjectPointOnCurve PonC(P,C);
72 //! D = PonC.LowerDistance();
80 //! This function builds (in the
81 //! parametric space of the plane P) a 2D curve equivalent to the 3D curve
82 //! C. The 3D curve C is considered to be located in the plane P.
84 //! The 3D curve C must be of one of the following types:
92 //! Exceptions Standard_NoSuchObject if C is not a defined type curve.
93 Standard_EXPORT static Handle(Geom2d_Curve) To2d (const Handle(Geom_Curve)& C, const gp_Pln& P);
95 //! Builds a 3D curve equivalent to the 2D curve C
96 //! described in the parametric space defined by the local
97 //! coordinate system of plane P.
98 //! The resulting 3D curve is of the same nature as that of the curve C.
99 Standard_EXPORT static Handle(Geom_Curve) To3d (const Handle(Geom2d_Curve)& C, const gp_Pln& P);
115 friend class GeomAPI_ProjectPointOnCurve;
116 friend class GeomAPI_ProjectPointOnSurf;
117 friend class GeomAPI_ExtremaCurveCurve;
118 friend class GeomAPI_ExtremaCurveSurface;
119 friend class GeomAPI_ExtremaSurfaceSurface;
120 friend class GeomAPI_PointsToBSpline;
121 friend class GeomAPI_PointsToBSplineSurface;
122 friend class GeomAPI_Interpolate;
123 friend class GeomAPI_IntSS;
124 friend class GeomAPI_IntCS;
134 #endif // _GeomAPI_HeaderFile