Integration of OCCT 6.5.0 from SVN
[occt.git] / src / BRepBlend / BRepBlend_AppFuncRst.cxx
1 // File:        BRepBlend_AppFuncRst.cxx
2 // Created:     Fri Jul 25 14:18:14 1997
3 // Author:      Jerome LEMONIER
4 //              <jlr@sgi64>
5
6
7 #include <BRepBlend_AppFuncRst.ixx>
8
9 BRepBlend_AppFuncRst::BRepBlend_AppFuncRst (Handle(BRepBlend_Line)& Line,
10                                             Blend_SurfRstFunction& Func,
11                                             const Standard_Real Tol3d,
12                                             const Standard_Real Tol2d)
13 :BRepBlend_AppFuncRoot(Line,Func,Tol3d,Tol2d)
14 {
15 }
16
17 void BRepBlend_AppFuncRst::Point(const Blend_AppFunction& Func,
18                                  const Standard_Real Param,
19                                  const math_Vector& Sol,
20                                  Blend_Point& Pnt)const
21 {
22   Pnt.SetValue(Func.Pnt1(), Func.Pnt2(),
23                Param,
24                Sol(1), Sol(2), Sol(3));
25 }
26
27 void BRepBlend_AppFuncRst::Vec(math_Vector& Sol,
28                                const Blend_Point& Pnt)const
29 {
30   Pnt.ParametersOnS(Sol(1),Sol(2));
31   Sol(3) = Pnt.ParameterOnC();
32 }
33