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 <Standard.hxx>
20 #include <Standard_Type.hxx>
22 #include <Standard_Integer.hxx>
23 #include <Standard_Real.hxx>
24 #include <Adaptor3d_TopolTool.hxx>
25 class Standard_DomainError;
26 class Adaptor3d_HSurface;
31 class IntTools_TopolTool;
32 DEFINE_STANDARD_HANDLE(IntTools_TopolTool, Adaptor3d_TopolTool)
34 //! Class redefine methods of TopolTool from Adaptor3d
35 //! concerning sample points
36 class IntTools_TopolTool : public Adaptor3d_TopolTool
44 Standard_EXPORT IntTools_TopolTool();
47 //! Initializes me by surface
48 Standard_EXPORT IntTools_TopolTool(const Handle(Adaptor3d_HSurface)& theSurface);
51 //! Redefined empty initializer
54 //! Raises the exception NotImplemented
55 Standard_EXPORT virtual void Initialize() Standard_OVERRIDE;
58 //! Initializes me by surface
59 Standard_EXPORT virtual void Initialize (const Handle(Adaptor3d_HSurface)& theSurface) Standard_OVERRIDE;
61 Standard_EXPORT virtual void ComputeSamplePoints() Standard_OVERRIDE;
64 //! Computes the sample-points for the intersections algorithms
65 Standard_EXPORT virtual Standard_Integer NbSamplesU() Standard_OVERRIDE;
68 //! Computes the sample-points for the intersections algorithms
69 Standard_EXPORT virtual Standard_Integer NbSamplesV() Standard_OVERRIDE;
72 //! Computes the sample-points for the intersections algorithms
73 Standard_EXPORT virtual Standard_Integer NbSamples() Standard_OVERRIDE;
76 //! Returns a 2d point from surface myS
77 //! and a corresponded 3d point
79 //! The index should be from 1 to NbSamples()
80 Standard_EXPORT virtual void SamplePoint (const Standard_Integer Index, gp_Pnt2d& P2d, gp_Pnt& P3d) Standard_OVERRIDE;
82 //! compute the sample-points for the intersections algorithms
83 //! by adaptive algorithm for BSpline surfaces. For other surfaces algorithm
84 //! is the same as in method ComputeSamplePoints(), but only fill arrays of U
85 //! and V sample parameters;
86 //! theDefl is a requred deflection
87 //! theNUmin, theNVmin are minimal nb points for U and V.
88 Standard_EXPORT virtual void SamplePnts (const Standard_Real theDefl, const Standard_Integer theNUmin, const Standard_Integer theNVmin) Standard_OVERRIDE;
93 DEFINE_STANDARD_RTTI(IntTools_TopolTool,Adaptor3d_TopolTool)
103 Standard_Integer myNbSmplU;
104 Standard_Integer myNbSmplV;
119 #endif // _IntTools_TopolTool_HeaderFile