1 // Created on: 1993-12-02
2 // Created by: Jacques GOUSSARD
3 // Copyright (c) 1993-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 _Blend_Point_HeaderFile
18 #define _Blend_Point_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
26 #include <Standard_Real.hxx>
27 #include <Standard_Boolean.hxx>
28 #include <gp_Vec2d.hxx>
29 class Standard_DomainError;
43 Standard_EXPORT Blend_Point();
45 //! Creates a point on 2 surfaces, with tangents.
46 Standard_EXPORT Blend_Point(const gp_Pnt& Pt1, const gp_Pnt& Pt2, const Standard_Real Param, const Standard_Real U1, const Standard_Real V1, const Standard_Real U2, const Standard_Real V2, const gp_Vec& Tg1, const gp_Vec& Tg2, const gp_Vec2d& Tg12d, const gp_Vec2d& Tg22d);
48 //! Creates a point on 2 surfaces, without tangents.
49 Standard_EXPORT Blend_Point(const gp_Pnt& Pt1, const gp_Pnt& Pt2, const Standard_Real Param, const Standard_Real U1, const Standard_Real V1, const Standard_Real U2, const Standard_Real V2);
51 //! Creates a point on a surface and a curve, with tangents.
52 Standard_EXPORT Blend_Point(const gp_Pnt& Pts, const gp_Pnt& Ptc, const Standard_Real Param, const Standard_Real U, const Standard_Real V, const Standard_Real W, const gp_Vec& Tgs, const gp_Vec& Tgc, const gp_Vec2d& Tg2d);
54 //! Creates a point on a surface and a curve, without tangents.
55 Standard_EXPORT Blend_Point(const gp_Pnt& Pts, const gp_Pnt& Ptc, const Standard_Real Param, const Standard_Real U, const Standard_Real V, const Standard_Real W);
57 //! Creates a point on a surface and a curve on surface,
59 Standard_EXPORT Blend_Point(const gp_Pnt& Pt1, const gp_Pnt& Pt2, const Standard_Real Param, const Standard_Real U1, const Standard_Real V1, const Standard_Real U2, const Standard_Real V2, const Standard_Real PC, const gp_Vec& Tg1, const gp_Vec& Tg2, const gp_Vec2d& Tg12d, const gp_Vec2d& Tg22d);
61 //! Creates a point on a surface and a curve on surface,
63 Standard_EXPORT Blend_Point(const gp_Pnt& Pt1, const gp_Pnt& Pt2, const Standard_Real Param, const Standard_Real U1, const Standard_Real V1, const Standard_Real U2, const Standard_Real V2, const Standard_Real PC);
65 //! Creates a point on two curves on surfaces, with tangents.
66 Standard_EXPORT Blend_Point(const gp_Pnt& Pt1, const gp_Pnt& Pt2, const Standard_Real Param, const Standard_Real U1, const Standard_Real V1, const Standard_Real U2, const Standard_Real V2, const Standard_Real PC1, const Standard_Real PC2, const gp_Vec& Tg1, const gp_Vec& Tg2, const gp_Vec2d& Tg12d, const gp_Vec2d& Tg22d);
68 //! Creates a point on two curves on surfaces, with tangents.
69 Standard_EXPORT Blend_Point(const gp_Pnt& Pt1, const gp_Pnt& Pt2, const Standard_Real Param, const Standard_Real U1, const Standard_Real V1, const Standard_Real U2, const Standard_Real V2, const Standard_Real PC1, const Standard_Real PC2);
71 //! Set the values for a point on 2 surfaces, with tangents.
72 Standard_EXPORT void SetValue (const gp_Pnt& Pt1, const gp_Pnt& Pt2, const Standard_Real Param, const Standard_Real U1, const Standard_Real V1, const Standard_Real U2, const Standard_Real V2, const gp_Vec& Tg1, const gp_Vec& Tg2, const gp_Vec2d& Tg12d, const gp_Vec2d& Tg22d);
74 //! Set the values for a point on 2 surfaces, without tangents.
75 Standard_EXPORT void SetValue (const gp_Pnt& Pt1, const gp_Pnt& Pt2, const Standard_Real Param, const Standard_Real U1, const Standard_Real V1, const Standard_Real U2, const Standard_Real V2);
77 //! Set the values for a point on a surface and a curve,
79 Standard_EXPORT void SetValue (const gp_Pnt& Pts, const gp_Pnt& Ptc, const Standard_Real Param, const Standard_Real U, const Standard_Real V, const Standard_Real W, const gp_Vec& Tgs, const gp_Vec& Tgc, const gp_Vec2d& Tg2d);
81 //! Set the values for a point on a surface and a curve,
83 Standard_EXPORT void SetValue (const gp_Pnt& Pts, const gp_Pnt& Ptc, const Standard_Real Param, const Standard_Real U, const Standard_Real V, const Standard_Real W);
85 //! Creates a point on a surface and a curve on surface,
87 Standard_EXPORT void SetValue (const gp_Pnt& Pt1, const gp_Pnt& Pt2, const Standard_Real Param, const Standard_Real U1, const Standard_Real V1, const Standard_Real U2, const Standard_Real V2, const Standard_Real PC, const gp_Vec& Tg1, const gp_Vec& Tg2, const gp_Vec2d& Tg12d, const gp_Vec2d& Tg22d);
89 //! Creates a point on a surface and a curve on surface,
91 Standard_EXPORT void SetValue (const gp_Pnt& Pt1, const gp_Pnt& Pt2, const Standard_Real Param, const Standard_Real U1, const Standard_Real V1, const Standard_Real U2, const Standard_Real V2, const Standard_Real PC);
93 //! Creates a point on two curves on surfaces, with tangents.
94 Standard_EXPORT void SetValue (const gp_Pnt& Pt1, const gp_Pnt& Pt2, const Standard_Real Param, const Standard_Real U1, const Standard_Real V1, const Standard_Real U2, const Standard_Real V2, const Standard_Real PC1, const Standard_Real PC2, const gp_Vec& Tg1, const gp_Vec& Tg2, const gp_Vec2d& Tg12d, const gp_Vec2d& Tg22d);
96 //! Creates a point on two curves on surfaces, without tangents.
97 Standard_EXPORT void SetValue (const gp_Pnt& Pt1, const gp_Pnt& Pt2, const Standard_Real Param, const Standard_Real U1, const Standard_Real V1, const Standard_Real U2, const Standard_Real V2, const Standard_Real PC1, const Standard_Real PC2);
99 //! Creates a point on two curves.
100 Standard_EXPORT void SetValue (const gp_Pnt& Pt1, const gp_Pnt& Pt2, const Standard_Real Param, const Standard_Real PC1, const Standard_Real PC2);
102 //! Changes parameter on existing point
103 void SetParameter (const Standard_Real Param);
105 Standard_Real Parameter() const;
107 //! Returns Standard_True if it was not possible to compute
108 //! the tangent vectors at PointOnS1 and/or PointOnS2.
109 Standard_Boolean IsTangencyPoint() const;
111 const gp_Pnt& PointOnS1() const;
113 const gp_Pnt& PointOnS2() const;
115 void ParametersOnS1 (Standard_Real& U, Standard_Real& V) const;
117 void ParametersOnS2 (Standard_Real& U, Standard_Real& V) const;
119 const gp_Vec& TangentOnS1() const;
121 const gp_Vec& TangentOnS2() const;
123 gp_Vec2d Tangent2dOnS1() const;
125 gp_Vec2d Tangent2dOnS2() const;
127 const gp_Pnt& PointOnS() const;
129 const gp_Pnt& PointOnC() const;
131 void ParametersOnS (Standard_Real& U, Standard_Real& V) const;
133 Standard_Real ParameterOnC() const;
135 const gp_Vec& TangentOnS() const;
137 const gp_Vec& TangentOnC() const;
139 gp_Vec2d Tangent2d() const;
141 const gp_Pnt& PointOnC1() const;
143 const gp_Pnt& PointOnC2() const;
145 Standard_Real ParameterOnC1() const;
147 Standard_Real ParameterOnC2() const;
149 const gp_Vec& TangentOnC1() const;
151 const gp_Vec& TangentOnC2() const;
177 Standard_Real utg12d;
178 Standard_Real vtg12d;
179 Standard_Real utg22d;
180 Standard_Real vtg22d;
181 Standard_Boolean hass1;
182 Standard_Boolean hass2;
183 Standard_Boolean hasc1;
184 Standard_Boolean hasc2;
185 Standard_Boolean istgt;
191 #include <Blend_Point.lxx>
197 #endif // _Blend_Point_HeaderFile