Integration of OCCT 6.5.0 from SVN
[occt.git] / src / IntPatch / IntPatch_PolygoTool.lxx
1 #ifndef IntPatch_Polygo_HeaderFile
2 #include <IntPatch_Polygo.hxx>
3 #endif
4 #ifndef Bnd_Box2d_HeaderFile
5 #include <Bnd_Box2d.hxx>
6 #endif
7 #ifndef gp_Pnt2d_HeaderFile
8 #include <gp_Pnt2d.hxx>
9 #endif
10
11 inline const Bnd_Box2d& IntPatch_PolygoTool::Bounding(const IntPatch_Polygo& Line)
12 { return Line.Bounding(); }
13
14
15 inline Standard_Real IntPatch_PolygoTool::DeflectionOverEstimation
16   (const IntPatch_Polygo& Line) 
17 { return Line.Error();} // fleche non calculable
18
19 inline Standard_Boolean IntPatch_PolygoTool::Closed(const IntPatch_Polygo& Line) 
20 { return Line.Closed();}
21
22 inline Standard_Integer IntPatch_PolygoTool::NbSegments(const IntPatch_Polygo& Line) 
23 { return Line.NbPoints()-1;}
24
25 inline gp_Pnt2d IntPatch_PolygoTool::BeginOfSeg(const IntPatch_Polygo& Line,
26                                          const Standard_Integer Index) 
27 { return Line.Point(Index);}
28
29
30 inline gp_Pnt2d IntPatch_PolygoTool::EndOfSeg(const IntPatch_Polygo& Line,
31                                        const Standard_Integer Index) 
32 { return Line.Point(Index+1);}
33
34