1 // Created on: 2005-10-05
2 // Created by: Mikhail KLOKOV
3 // Copyright (c) 2005-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
17 #include <IntTools_CurveRangeSample.hxx>
18 #include <IntTools_Range.hxx>
19 #include <IntTools_SurfaceRangeSample.hxx>
21 IntTools_SurfaceRangeSample::IntTools_SurfaceRangeSample()
25 IntTools_SurfaceRangeSample::IntTools_SurfaceRangeSample(const Standard_Integer theIndexU,const Standard_Integer theDepthU,
26 const Standard_Integer theIndexV,const Standard_Integer theDepthV)
28 myRangeU.SetRangeIndex(theIndexU);
29 myRangeU.SetDepth(theDepthU);
30 myRangeV.SetRangeIndex(theIndexV);
31 myRangeV.SetDepth(theDepthV);
34 IntTools_SurfaceRangeSample::IntTools_SurfaceRangeSample(const IntTools_CurveRangeSample& theRangeU,
35 const IntTools_CurveRangeSample& theRangeV)
41 IntTools_SurfaceRangeSample::IntTools_SurfaceRangeSample(const IntTools_SurfaceRangeSample& Other)
46 IntTools_SurfaceRangeSample& IntTools_SurfaceRangeSample::Assign(const IntTools_SurfaceRangeSample& Other)
48 myRangeU = Other.myRangeU;
49 myRangeV = Other.myRangeV;
54 IntTools_Range IntTools_SurfaceRangeSample::GetRangeU(const Standard_Real theFirstU,const Standard_Real theLastU,
55 const Standard_Integer theNbSampleU) const
57 return myRangeU.GetRange(theFirstU, theLastU, theNbSampleU);
60 IntTools_Range IntTools_SurfaceRangeSample::GetRangeV(const Standard_Real theFirstV,const Standard_Real theLastV,
61 const Standard_Integer theNbSampleV) const
63 return myRangeV.GetRange(theFirstV, theLastV, theNbSampleV);