Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:04:09

0001 // Created on: 1992-05-06
0002 // Created by: Jacques GOUSSARD
0003 // Copyright (c) 1992-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _IntPatch_TheSOnBounds_HeaderFile
0018 #define _IntPatch_TheSOnBounds_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <IntPatch_SequenceOfSegmentOfTheSOnBounds.hxx>
0025 #include <IntPatch_SequenceOfPathPointOfTheSOnBounds.hxx>
0026 #include <Standard_Integer.hxx>
0027 class StdFail_NotDone;
0028 class Standard_OutOfRange;
0029 class Standard_ConstructionError;
0030 class Adaptor3d_HVertex;
0031 class IntPatch_HCurve2dTool;
0032 class IntPatch_HInterTool;
0033 class Adaptor3d_TopolTool;
0034 class IntPatch_ArcFunction;
0035 class IntPatch_ThePathPointOfTheSOnBounds;
0036 class IntPatch_TheSegmentOfTheSOnBounds;
0037 
0038 class IntPatch_TheSOnBounds 
0039 {
0040 public:
0041 
0042   DEFINE_STANDARD_ALLOC
0043 
0044   
0045   //! Empty constructor.
0046   Standard_EXPORT IntPatch_TheSOnBounds();
0047   
0048   //! Algorithm to find the points and parts of curves of Domain
0049   //! (domain of of restriction of a surface) which verify
0050   //! F = 0.
0051   //! TolBoundary defines if a curve is on Q.
0052   //! TolTangency defines if a point is on Q.
0053   Standard_EXPORT void Perform (IntPatch_ArcFunction& F, const Handle(Adaptor3d_TopolTool)& Domain, const Standard_Real TolBoundary, const Standard_Real TolTangency, const Standard_Boolean RecheckOnRegularity = Standard_False);
0054   
0055   //! Returns True if the calculus was successful.
0056     Standard_Boolean IsDone() const;
0057   
0058   //! Returns true if all arc of the Arcs are solution (inside
0059   //! the surface).
0060   //! An exception is raised if IsDone returns False.
0061     Standard_Boolean AllArcSolution() const;
0062   
0063   //! Returns the number of resulting points.
0064   //! An exception is raised if IsDone returns False (NotDone).
0065     Standard_Integer NbPoints() const;
0066   
0067   //! Returns the resulting point of range Index.
0068   //! The exception NotDone is raised if IsDone() returns
0069   //! False.
0070   //! The exception OutOfRange is raised if
0071   //! Index <= 0 or Index > NbPoints.
0072     const IntPatch_ThePathPointOfTheSOnBounds& Point (const Standard_Integer Index) const;
0073   
0074   //! Returns the number of the resulting segments.
0075   //! An exception is raised if IsDone returns False (NotDone).
0076     Standard_Integer NbSegments() const;
0077   
0078   //! Returns the resulting segment of range Index.
0079   //! The exception NotDone is raised if IsDone() returns
0080   //! False.
0081   //! The exception OutOfRange is raised if
0082   //! Index <= 0 or Index > NbPoints.
0083     const IntPatch_TheSegmentOfTheSOnBounds& Segment (const Standard_Integer Index) const;
0084 
0085 
0086 
0087 
0088 protected:
0089 
0090 
0091 
0092 
0093 
0094 private:
0095 
0096 
0097 
0098   Standard_Boolean done;
0099   Standard_Boolean all;
0100   IntPatch_SequenceOfSegmentOfTheSOnBounds sseg;
0101   IntPatch_SequenceOfPathPointOfTheSOnBounds spnt;
0102 
0103 
0104 };
0105 
0106 #define TheVertex Handle(Adaptor3d_HVertex)
0107 #define TheVertex_hxx <Adaptor3d_HVertex.hxx>
0108 #define TheArc Handle(Adaptor2d_Curve2d)
0109 #define TheArc_hxx <Adaptor2d_Curve2d.hxx>
0110 #define TheArcTool IntPatch_HCurve2dTool
0111 #define TheArcTool_hxx <IntPatch_HCurve2dTool.hxx>
0112 #define TheSOBTool IntPatch_HInterTool
0113 #define TheSOBTool_hxx <IntPatch_HInterTool.hxx>
0114 #define Handle_TheTopolTool Handle(Adaptor3d_TopolTool)
0115 #define TheTopolTool Adaptor3d_TopolTool
0116 #define TheTopolTool_hxx <Adaptor3d_TopolTool.hxx>
0117 #define TheFunction IntPatch_ArcFunction
0118 #define TheFunction_hxx <IntPatch_ArcFunction.hxx>
0119 #define IntStart_ThePathPoint IntPatch_ThePathPointOfTheSOnBounds
0120 #define IntStart_ThePathPoint_hxx <IntPatch_ThePathPointOfTheSOnBounds.hxx>
0121 #define IntStart_SequenceOfPathPoint IntPatch_SequenceOfPathPointOfTheSOnBounds
0122 #define IntStart_SequenceOfPathPoint_hxx <IntPatch_SequenceOfPathPointOfTheSOnBounds.hxx>
0123 #define IntStart_TheSegment IntPatch_TheSegmentOfTheSOnBounds
0124 #define IntStart_TheSegment_hxx <IntPatch_TheSegmentOfTheSOnBounds.hxx>
0125 #define IntStart_SequenceOfSegment IntPatch_SequenceOfSegmentOfTheSOnBounds
0126 #define IntStart_SequenceOfSegment_hxx <IntPatch_SequenceOfSegmentOfTheSOnBounds.hxx>
0127 #define IntStart_SearchOnBoundaries IntPatch_TheSOnBounds
0128 #define IntStart_SearchOnBoundaries_hxx <IntPatch_TheSOnBounds.hxx>
0129 
0130 #include <IntStart_SearchOnBoundaries.lxx>
0131 
0132 #undef TheVertex
0133 #undef TheVertex_hxx
0134 #undef TheArc
0135 #undef TheArc_hxx
0136 #undef TheArcTool
0137 #undef TheArcTool_hxx
0138 #undef TheSOBTool
0139 #undef TheSOBTool_hxx
0140 #undef Handle_TheTopolTool
0141 #undef TheTopolTool
0142 #undef TheTopolTool_hxx
0143 #undef TheFunction
0144 #undef TheFunction_hxx
0145 #undef IntStart_ThePathPoint
0146 #undef IntStart_ThePathPoint_hxx
0147 #undef IntStart_SequenceOfPathPoint
0148 #undef IntStart_SequenceOfPathPoint_hxx
0149 #undef IntStart_TheSegment
0150 #undef IntStart_TheSegment_hxx
0151 #undef IntStart_SequenceOfSegment
0152 #undef IntStart_SequenceOfSegment_hxx
0153 #undef IntStart_SearchOnBoundaries
0154 #undef IntStart_SearchOnBoundaries_hxx
0155 
0156 
0157 
0158 
0159 #endif // _IntPatch_TheSOnBounds_HeaderFile