Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:11

0001 // Created on: 1994-11-14
0002 // Created by: Bruno DUMORTIER
0003 // Copyright (c) 1994-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 _BRepFill_MultiLine_HeaderFile
0018 #define _BRepFill_MultiLine_HeaderFile
0019 
0020 #include <AppCont_Function.hxx>
0021 
0022 #include <Standard.hxx>
0023 #include <Standard_DefineAlloc.hxx>
0024 #include <Standard_Macro.hxx>
0025 
0026 #include <TopoDS_Edge.hxx>
0027 #include <TopoDS_Face.hxx>
0028 #include <Geom2dAdaptor_Curve.hxx>
0029 #include <Standard_Integer.hxx>
0030 #include <GeomAbs_Shape.hxx>
0031 #include <Standard_Real.hxx>
0032 
0033 class TopoDS_Edge;
0034 class Geom2d_Curve;
0035 class Geom_Curve;
0036 class gp_Pnt;
0037 class gp_Pnt2d;
0038 
0039 
0040 //! Class used to compute the 3d curve and the
0041 //! two 2d curves resulting from the intersection of a
0042 //! surface of linear extrusion( Bissec, Dz) and the 2
0043 //! faces.
0044 //! This 3 curves will  have  the same parametrization
0045 //! as the Bissectrice.
0046 //! This  class  is  to  be  send  to an approximation
0047 //! routine.
0048 class BRepFill_MultiLine : public AppCont_Function
0049 {
0050 public:
0051   DEFINE_STANDARD_ALLOC
0052 
0053   Standard_EXPORT BRepFill_MultiLine();
0054 
0055   Standard_EXPORT BRepFill_MultiLine(const TopoDS_Face& Face1, const TopoDS_Face& Face2, const TopoDS_Edge& Edge1, const TopoDS_Edge& Edge2, const Standard_Boolean Inv1, const Standard_Boolean Inv2, const Handle(Geom2d_Curve)& Bissec);
0056 
0057   //! Search if the Projection of the Bissectrice on the
0058   //! faces needs an approximation or not.
0059   //! Returns true if the approximation is not needed.
0060   Standard_EXPORT   Standard_Boolean IsParticularCase()  const;
0061 
0062   //! Returns   the continuity  betwwen  the two  faces
0063   //! seShape         from GeomAbsparated by myBis.
0064   Standard_EXPORT   GeomAbs_Shape Continuity()  const;
0065 
0066   //! raises if IsParticularCase is <False>.
0067   Standard_EXPORT   void Curves (Handle(Geom_Curve)& Curve, Handle(Geom2d_Curve)& PCurve1, Handle(Geom2d_Curve)& PCurve2)  const;
0068 
0069   //! returns the first parameter of the Bissectrice.
0070   Standard_EXPORT virtual Standard_Real FirstParameter()  const;
0071 
0072   //! returns the last parameter of the Bissectrice.
0073   Standard_EXPORT virtual Standard_Real LastParameter()  const;
0074   
0075   //! Returns the current point on the 3d curve
0076   Standard_EXPORT   gp_Pnt Value (const Standard_Real U)  const;
0077 
0078   //! returns the current point on the PCurve of the
0079   //! first face
0080   Standard_EXPORT   gp_Pnt2d ValueOnF1 (const Standard_Real U)  const;
0081 
0082   //! returns the current point on the PCurve of the
0083   //! first face
0084   Standard_EXPORT   gp_Pnt2d ValueOnF2 (const Standard_Real U)  const;
0085 
0086   Standard_EXPORT   void Value3dOnF1OnF2 (const Standard_Real U, gp_Pnt& P3d, gp_Pnt2d& PF1, gp_Pnt2d& PF2)  const;
0087 
0088   //! Returns the point at parameter <theU>.
0089   Standard_EXPORT virtual Standard_Boolean Value(const Standard_Real   theU,
0090                                                  NCollection_Array1<gp_Pnt2d>& thePnt2d,
0091                                                  NCollection_Array1<gp_Pnt>&   thePnt) const;
0092 
0093   //! Returns the derivative at parameter <theU>.
0094   Standard_EXPORT virtual Standard_Boolean D1(const Standard_Real   theU,
0095                                               NCollection_Array1<gp_Vec2d>& theVec2d,
0096                                               NCollection_Array1<gp_Vec>&   theVec) const;
0097 
0098 private:
0099   TopoDS_Face myFace1;
0100   TopoDS_Face myFace2;
0101   Geom2dAdaptor_Curve myU1;
0102   Geom2dAdaptor_Curve myV1;
0103   Geom2dAdaptor_Curve myU2;
0104   Geom2dAdaptor_Curve myV2;
0105   Standard_Boolean myIsoU1;
0106   Standard_Boolean myIsoU2;
0107   Geom2dAdaptor_Curve myBis;
0108   Standard_Integer myKPart;
0109   GeomAbs_Shape myCont;
0110 };
0111 
0112 #endif // _BRepFill_MultiLine_HeaderFile