1 // Created on: 2002-04-18
2 // Created by: Michael KLOKOV
3 // Copyright (c) 2002-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.
16 #ifndef _IntTools_TopolTool_HeaderFile
17 #define _IntTools_TopolTool_HeaderFile
19 #include <Adaptor3d_TopolTool.hxx>
20 #include <Adaptor3d_Surface.hxx>
26 class IntTools_TopolTool;
27 DEFINE_STANDARD_HANDLE(IntTools_TopolTool, Adaptor3d_TopolTool)
29 //! Class redefine methods of TopolTool from Adaptor3d
30 //! concerning sample points
31 class IntTools_TopolTool : public Adaptor3d_TopolTool
39 Standard_EXPORT IntTools_TopolTool();
42 //! Initializes me by surface
43 Standard_EXPORT IntTools_TopolTool(const Handle(Adaptor3d_Surface)& theSurface);
46 //! Redefined empty initializer
49 //! Raises the exception NotImplemented
50 Standard_EXPORT virtual void Initialize() Standard_OVERRIDE;
53 //! Initializes me by surface
54 Standard_EXPORT virtual void Initialize (const Handle(Adaptor3d_Surface)& theSurface) Standard_OVERRIDE;
56 Standard_EXPORT virtual void ComputeSamplePoints() Standard_OVERRIDE;
59 //! Computes the sample-points for the intersections algorithms
60 Standard_EXPORT virtual Standard_Integer NbSamplesU() Standard_OVERRIDE;
63 //! Computes the sample-points for the intersections algorithms
64 Standard_EXPORT virtual Standard_Integer NbSamplesV() Standard_OVERRIDE;
67 //! Computes the sample-points for the intersections algorithms
68 Standard_EXPORT virtual Standard_Integer NbSamples() Standard_OVERRIDE;
71 //! Returns a 2d point from surface myS
72 //! and a corresponded 3d point
74 //! The index should be from 1 to NbSamples()
75 Standard_EXPORT virtual void SamplePoint (const Standard_Integer Index, gp_Pnt2d& P2d, gp_Pnt& P3d) Standard_OVERRIDE;
77 //! compute the sample-points for the intersections algorithms
78 //! by adaptive algorithm for BSpline surfaces. For other surfaces algorithm
79 //! is the same as in method ComputeSamplePoints(), but only fill arrays of U
80 //! and V sample parameters;
81 //! theDefl is a required deflection
82 //! theNUmin, theNVmin are minimal nb points for U and V.
83 Standard_EXPORT virtual void SamplePnts (const Standard_Real theDefl, const Standard_Integer theNUmin, const Standard_Integer theNVmin) Standard_OVERRIDE;
88 DEFINE_STANDARD_RTTIEXT(IntTools_TopolTool,Adaptor3d_TopolTool)
98 Standard_Integer myNbSmplU;
99 Standard_Integer myNbSmplV;
114 #endif // _IntTools_TopolTool_HeaderFile