// File generated by CPPExt (Value)
//
//                     Copyright (C) 1991 - 2000 by  
//                      Matra Datavision SA.  All rights reserved.
//  
//                     Copyright (C) 2001 - 2004 by
//                     Open CASCADE SA.  All rights reserved.
// 
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//  
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.

#ifndef _IntPatch_TheIIIntOfIntersection_HeaderFile
#define _IntPatch_TheIIIntOfIntersection_HeaderFile

#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _IntPatch_SequenceOfPointOfIntersection_HeaderFile
#include <IntPatch_SequenceOfPointOfIntersection.hxx>
#endif
#ifndef _IntPatch_SequenceOfLine_HeaderFile
#include <IntPatch_SequenceOfLine.hxx>
#endif
#ifndef _IntPatch_TheSOnBoundsOfIntersection_HeaderFile
#include <IntPatch_TheSOnBoundsOfIntersection.hxx>
#endif
#ifndef _Handle_Adaptor3d_HVertex_HeaderFile
#include <Handle_Adaptor3d_HVertex.hxx>
#endif
#ifndef _Handle_Adaptor2d_HCurve2d_HeaderFile
#include <Handle_Adaptor2d_HCurve2d.hxx>
#endif
#ifndef _Handle_Adaptor3d_HSurface_HeaderFile
#include <Handle_Adaptor3d_HSurface.hxx>
#endif
#ifndef _Handle_Adaptor3d_TopolTool_HeaderFile
#include <Handle_Adaptor3d_TopolTool.hxx>
#endif
#ifndef _Handle_IntPatch_TheGLineOfIntersection_HeaderFile
#include <Handle_IntPatch_TheGLineOfIntersection.hxx>
#endif
#ifndef _Handle_IntPatch_TheALineOfIntersection_HeaderFile
#include <Handle_IntPatch_TheALineOfIntersection.hxx>
#endif
#ifndef _Handle_IntPatch_TheRLineOfIntersection_HeaderFile
#include <Handle_IntPatch_TheRLineOfIntersection.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _Handle_IntPatch_Line_HeaderFile
#include <Handle_IntPatch_Line.hxx>
#endif
class StdFail_NotDone;
class Standard_OutOfRange;
class Standard_DomainError;
class Standard_ConstructionError;
class Adaptor3d_HVertex;
class Adaptor2d_HCurve2d;
class Adaptor3d_HSurface;
class IntPatch_HCurve2dTool;
class IntPatch_HSurfaceTool;
class Adaptor3d_TopolTool;
class IntPatch_HInterTool;
class IntPatch_ThePointOfIntersection;
class IntPatch_SequenceOfPointOfIntersection;
class IntPatch_TheGLineOfIntersection;
class IntPatch_TheALineOfIntersection;
class IntPatch_TheRLineOfIntersection;
class IntPatch_TheArcFunctionOfIntersection;
class IntPatch_ThePathPointOfTheSOnBoundsOfIntersection;
class IntPatch_TheSegmentOfTheSOnBoundsOfIntersection;
class IntPatch_SequenceOfPathPointOfTheSOnBoundsOfIntersection;
class IntPatch_SequenceOfSegmentOfTheSOnBoundsOfIntersection;
class IntPatch_TheSOnBoundsOfIntersection;
class IntPatch_Line;


#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif


class IntPatch_TheIIIntOfIntersection  {

public:

    void* operator new(size_t,void* anAddress) 
      {
        return anAddress;
      }
    void* operator new(size_t size) 
      { 
        return Standard::Allocate(size); 
      }
    void  operator delete(void *anAddress) 
      { 
        if (anAddress) Standard::Free((Standard_Address&)anAddress); 
      }
 // Methods PUBLIC
 // 


Standard_EXPORT IntPatch_TheIIIntOfIntersection();


Standard_EXPORT IntPatch_TheIIIntOfIntersection(const Handle(Adaptor3d_HSurface)& S1,const Handle(Adaptor3d_TopolTool)& D1,const Handle(Adaptor3d_HSurface)& S2,const Handle(Adaptor3d_TopolTool)& D2,const Standard_Real TolArc,const Standard_Real TolTang);


Standard_EXPORT   void Perform(const Handle(Adaptor3d_HSurface)& S1,const Handle(Adaptor3d_TopolTool)& D1,const Handle(Adaptor3d_HSurface)& S2,const Handle(Adaptor3d_TopolTool)& D2,const Standard_Real TolArc,const Standard_Real TolTang) ;

  Standard_Boolean IsDone() const;

  Standard_Boolean IsEmpty() const;

  Standard_Boolean TangentFaces() const;

  Standard_Boolean OppositeFaces() const;

  Standard_Integer NbPnts() const;

 const IntPatch_ThePointOfIntersection& Point(const Standard_Integer Index) const;

  Standard_Integer NbLines() const;

 const Handle_IntPatch_Line& Line(const Standard_Integer Index) const;





protected:

 // Methods PROTECTED
 // 


 // Fields PROTECTED
 //


private: 

 // Methods PRIVATE
 // 


 // Fields PRIVATE
 //
Standard_Boolean done;
Standard_Boolean empt;
Standard_Boolean tgte;
Standard_Boolean oppo;
Standard_Boolean reverse;
IntPatch_SequenceOfPointOfIntersection spnt;
IntPatch_SequenceOfLine slin;
IntPatch_TheSOnBoundsOfIntersection solrst;


};

#define TheVertex Handle_Adaptor3d_HVertex
#define TheVertex_hxx <Adaptor3d_HVertex.hxx>
#define TheArc Handle_Adaptor2d_HCurve2d
#define TheArc_hxx <Adaptor2d_HCurve2d.hxx>
#define TheSurface Handle_Adaptor3d_HSurface
#define TheSurface_hxx <Adaptor3d_HSurface.hxx>
#define TheArcTool IntPatch_HCurve2dTool
#define TheArcTool_hxx <IntPatch_HCurve2dTool.hxx>
#define TheSurfaceTool IntPatch_HSurfaceTool
#define TheSurfaceTool_hxx <IntPatch_HSurfaceTool.hxx>
#define Handle_TheTopolTool Handle_Adaptor3d_TopolTool
#define TheTopolTool Adaptor3d_TopolTool
#define TheTopolTool_hxx <Adaptor3d_TopolTool.hxx>
#define TheInterTool IntPatch_HInterTool
#define TheInterTool_hxx <IntPatch_HInterTool.hxx>
#define ThePoint IntPatch_ThePointOfIntersection
#define ThePoint_hxx <IntPatch_ThePointOfIntersection.hxx>
#define SequenceOfPoint IntPatch_SequenceOfPointOfIntersection
#define SequenceOfPoint_hxx <IntPatch_SequenceOfPointOfIntersection.hxx>
#define Handle_TheGLine Handle_IntPatch_TheGLineOfIntersection
#define TheGLine IntPatch_TheGLineOfIntersection
#define TheGLine_hxx <IntPatch_TheGLineOfIntersection.hxx>
#define Handle_TheALine Handle_IntPatch_TheALineOfIntersection
#define TheALine IntPatch_TheALineOfIntersection
#define TheALine_hxx <IntPatch_TheALineOfIntersection.hxx>
#define Handle_TheRLine Handle_IntPatch_TheRLineOfIntersection
#define TheRLine IntPatch_TheRLineOfIntersection
#define TheRLine_hxx <IntPatch_TheRLineOfIntersection.hxx>
#define TheArcFunction IntPatch_TheArcFunctionOfIntersection
#define TheArcFunction_hxx <IntPatch_TheArcFunctionOfIntersection.hxx>
#define ThePointOnRst IntPatch_ThePathPointOfTheSOnBoundsOfIntersection
#define ThePointOnRst_hxx <IntPatch_ThePathPointOfTheSOnBoundsOfIntersection.hxx>
#define TheEdgeSol IntPatch_TheSegmentOfTheSOnBoundsOfIntersection
#define TheEdgeSol_hxx <IntPatch_TheSegmentOfTheSOnBoundsOfIntersection.hxx>
#define SequenceOfPointOnRst IntPatch_SequenceOfPathPointOfTheSOnBoundsOfIntersection
#define SequenceOfPointOnRst_hxx <IntPatch_SequenceOfPathPointOfTheSOnBoundsOfIntersection.hxx>
#define SequenceOfEdgeSol IntPatch_SequenceOfSegmentOfTheSOnBoundsOfIntersection
#define SequenceOfEdgeSol_hxx <IntPatch_SequenceOfSegmentOfTheSOnBoundsOfIntersection.hxx>
#define TheSearchOnBoundaries IntPatch_TheSOnBoundsOfIntersection
#define TheSearchOnBoundaries_hxx <IntPatch_TheSOnBoundsOfIntersection.hxx>
#define IntPatch_ImpImpIntersection IntPatch_TheIIIntOfIntersection
#define IntPatch_ImpImpIntersection_hxx <IntPatch_TheIIIntOfIntersection.hxx>

#include <IntPatch_ImpImpIntersection.lxx>

#undef TheVertex
#undef TheVertex_hxx
#undef TheArc
#undef TheArc_hxx
#undef TheSurface
#undef TheSurface_hxx
#undef TheArcTool
#undef TheArcTool_hxx
#undef TheSurfaceTool
#undef TheSurfaceTool_hxx
#undef Handle_TheTopolTool
#undef TheTopolTool
#undef TheTopolTool_hxx
#undef TheInterTool
#undef TheInterTool_hxx
#undef ThePoint
#undef ThePoint_hxx
#undef SequenceOfPoint
#undef SequenceOfPoint_hxx
#undef Handle_TheGLine
#undef TheGLine
#undef TheGLine_hxx
#undef Handle_TheALine
#undef TheALine
#undef TheALine_hxx
#undef Handle_TheRLine
#undef TheRLine
#undef TheRLine_hxx
#undef TheArcFunction
#undef TheArcFunction_hxx
#undef ThePointOnRst
#undef ThePointOnRst_hxx
#undef TheEdgeSol
#undef TheEdgeSol_hxx
#undef SequenceOfPointOnRst
#undef SequenceOfPointOnRst_hxx
#undef SequenceOfEdgeSol
#undef SequenceOfEdgeSol_hxx
#undef TheSearchOnBoundaries
#undef TheSearchOnBoundaries_hxx
#undef IntPatch_ImpImpIntersection
#undef IntPatch_ImpImpIntersection_hxx


// other Inline functions and methods (like "C++: function call" methods)
//


#endif
