Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/opencascade/BRepFill_MultiLine.hxx was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

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 //! Class used to compute the 3d curve and the
0040 //! two 2d curves resulting from the intersection of a
0041 //! surface of linear extrusion( Bissec, Dz) and the 2
0042 //! faces.
0043 //! These 3 curves will have the same parametrization
0044 //! as the Bissectrice.
0045 //! This class is to be sent to an approximation
0046 //! routine.
0047 class BRepFill_MultiLine : public AppCont_Function
0048 {
0049 public:
0050   DEFINE_STANDARD_ALLOC
0051 
0052   Standard_EXPORT BRepFill_MultiLine();
0053 
0054   Standard_EXPORT BRepFill_MultiLine(const TopoDS_Face&               Face1,
0055                                      const TopoDS_Face&               Face2,
0056                                      const TopoDS_Edge&               Edge1,
0057                                      const TopoDS_Edge&               Edge2,
0058                                      const bool                       Inv1,
0059                                      const bool                       Inv2,
0060                                      const occ::handle<Geom2d_Curve>& Bissec);
0061 
0062   //! Search if the Projection of the Bissectrice on the
0063   //! faces needs an approximation or not.
0064   //! Returns true if the approximation is not needed.
0065   Standard_EXPORT bool IsParticularCase() const;
0066 
0067   //! Returns the continuity between the two faces
0068   //! seShape from GeomAbsparated by myBis.
0069   Standard_EXPORT GeomAbs_Shape Continuity() const;
0070 
0071   //! raises if IsParticularCase is <False>.
0072   Standard_EXPORT void Curves(occ::handle<Geom_Curve>&   Curve,
0073                               occ::handle<Geom2d_Curve>& PCurve1,
0074                               occ::handle<Geom2d_Curve>& PCurve2) const;
0075 
0076   //! returns the first parameter of the Bissectrice.
0077   Standard_EXPORT double FirstParameter() const override;
0078 
0079   //! returns the last parameter of the Bissectrice.
0080   Standard_EXPORT double LastParameter() const override;
0081 
0082   //! Returns the current point on the 3d curve
0083   Standard_EXPORT gp_Pnt Value(const double U) const;
0084 
0085   //! returns the current point on the PCurve of the
0086   //! first face
0087   Standard_EXPORT gp_Pnt2d ValueOnF1(const double U) const;
0088 
0089   //! returns the current point on the PCurve of the
0090   //! first face
0091   Standard_EXPORT gp_Pnt2d ValueOnF2(const double U) const;
0092 
0093   Standard_EXPORT void Value3dOnF1OnF2(const double U,
0094                                        gp_Pnt&      P3d,
0095                                        gp_Pnt2d&    PF1,
0096                                        gp_Pnt2d&    PF2) const;
0097 
0098   //! Returns the point at parameter <theU>.
0099   Standard_EXPORT bool Value(const double                  theU,
0100                              NCollection_Array1<gp_Pnt2d>& thePnt2d,
0101                              NCollection_Array1<gp_Pnt>&   thePnt) const override;
0102 
0103   //! Returns the derivative at parameter <theU>.
0104   Standard_EXPORT bool D1(const double                  theU,
0105                           NCollection_Array1<gp_Vec2d>& theVec2d,
0106                           NCollection_Array1<gp_Vec>&   theVec) const override;
0107 
0108 private:
0109   TopoDS_Face         myFace1;
0110   TopoDS_Face         myFace2;
0111   Geom2dAdaptor_Curve myU1;
0112   Geom2dAdaptor_Curve myV1;
0113   Geom2dAdaptor_Curve myU2;
0114   Geom2dAdaptor_Curve myV2;
0115   bool                myIsoU1;
0116   bool                myIsoU2;
0117   Geom2dAdaptor_Curve myBis;
0118   int                 myKPart;
0119   GeomAbs_Shape       myCont;
0120 };
0121 
0122 #endif // _BRepFill_MultiLine_HeaderFile