File indexing completed on 2025-10-29 08:48:49
0001 
0002 
0003 
0004 
0005 
0006 
0007 
0008 
0009 
0010 
0011 
0012 
0013 
0014 
0015 #ifndef _BRepLib_CheckCurveOnSurface_HeaderFile
0016 #define _BRepLib_CheckCurveOnSurface_HeaderFile
0017 
0018 #include <GeomLib_CheckCurveOnSurface.hxx>
0019 
0020 
0021 
0022 
0023 class BRepLib_CheckCurveOnSurface 
0024 {
0025 public:
0026 
0027   DEFINE_STANDARD_ALLOC
0028 
0029   
0030   BRepLib_CheckCurveOnSurface() 
0031     : myIsParallel(Standard_False)
0032   {
0033   }
0034   
0035   
0036   Standard_EXPORT BRepLib_CheckCurveOnSurface(const TopoDS_Edge& theEdge,
0037                                               const TopoDS_Face& theFace);
0038   
0039   
0040   Standard_EXPORT void Init (const TopoDS_Edge& theEdge, const TopoDS_Face& theFace);
0041 
0042   
0043   
0044   Standard_EXPORT void Perform();
0045   
0046   
0047   Standard_Boolean IsDone() const
0048   {
0049     return myCOnSurfGeom.ErrorStatus() == 0;
0050   }
0051   
0052   
0053   void SetParallel(const Standard_Boolean theIsParallel)
0054   {
0055     myIsParallel = theIsParallel;
0056   }
0057 
0058   
0059   Standard_Boolean IsParallel()
0060   {
0061     return myIsParallel;
0062   }
0063 
0064   
0065   
0066   
0067   
0068   
0069   
0070   Standard_Integer ErrorStatus() const
0071   {
0072     return myCOnSurfGeom.ErrorStatus();
0073   }
0074   
0075   
0076   Standard_Real MaxDistance() const
0077   {
0078     return myCOnSurfGeom.MaxDistance();
0079   }
0080   
0081   
0082   Standard_Real MaxParameter() const
0083   {
0084     return myCOnSurfGeom.MaxParameter();
0085   }
0086 
0087 protected:
0088 
0089   
0090   
0091   
0092   Standard_EXPORT void Compute (const Handle(Adaptor3d_CurveOnSurface)& theCurveOnSurface);
0093 
0094 private:
0095 
0096   GeomLib_CheckCurveOnSurface myCOnSurfGeom;
0097   Handle(Adaptor3d_CurveOnSurface) myAdaptorCurveOnSurface;
0098   Handle(Adaptor3d_CurveOnSurface) myAdaptorCurveOnSurface2;
0099   Standard_Boolean myIsParallel;
0100 };
0101 
0102 #endif