Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created on: 1995-12-04
0002 // Created by: Laurent BOURESCHE
0003 // Copyright (c) 1995-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 _GeomFill_CoonsAlgPatch_HeaderFile
0018 #define _GeomFill_CoonsAlgPatch_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022 
0023 #include <gp_Pnt.hxx>
0024 #include <Standard_Transient.hxx>
0025 #include <Standard_Integer.hxx>
0026 class GeomFill_Boundary;
0027 class Law_Function;
0028 class gp_Vec;
0029 
0030 
0031 class GeomFill_CoonsAlgPatch;
0032 DEFINE_STANDARD_HANDLE(GeomFill_CoonsAlgPatch, Standard_Transient)
0033 
0034 //! Provides  evaluation   methods on an   algorithmic
0035 //! patch (based on 4 Curves) defined by  its   boundaries and  blending
0036 //! functions.
0037 class GeomFill_CoonsAlgPatch : public Standard_Transient
0038 {
0039 
0040 public:
0041 
0042   
0043   //! Constructs the  algorithmic   patch. By   Default  the
0044   //! constructed blending functions are linear.
0045   //! Warning: No control is done on the bounds.
0046   //! B1/B3 and B2/B4 must be same range and well oriented.
0047   Standard_EXPORT GeomFill_CoonsAlgPatch(const Handle(GeomFill_Boundary)& B1, const Handle(GeomFill_Boundary)& B2, const Handle(GeomFill_Boundary)& B3, const Handle(GeomFill_Boundary)& B4);
0048   
0049   //! Give the blending functions.
0050   Standard_EXPORT void Func (Handle(Law_Function)& f1, Handle(Law_Function)& f2) const;
0051   
0052   //! Set the blending functions.
0053   Standard_EXPORT void SetFunc (const Handle(Law_Function)& f1, const Handle(Law_Function)& f2);
0054   
0055   //! Computes  the  value   on the  algorithmic    patch at
0056   //! parameters U and V.
0057   Standard_EXPORT gp_Pnt Value (const Standard_Real U, const Standard_Real V) const;
0058   
0059   //! Computes   the  d/dU   partial   derivative  on    the
0060   //! algorithmic patch at parameters U and V.
0061   Standard_EXPORT gp_Vec D1U (const Standard_Real U, const Standard_Real V) const;
0062   
0063   //! Computes    the  d/dV    partial    derivative on  the
0064   //! algorithmic patch at parameters U and V.
0065   Standard_EXPORT gp_Vec D1V (const Standard_Real U, const Standard_Real V) const;
0066   
0067   //! Computes the   d2/dUdV  partial  derivative   on   the
0068   //! algorithmic  patch made with linear blending functions
0069   //! at parameter U and V.
0070   Standard_EXPORT gp_Vec DUV (const Standard_Real U, const Standard_Real V) const;
0071   
0072   Standard_EXPORT const gp_Pnt& Corner (const Standard_Integer I) const;
0073   
0074   Standard_EXPORT const Handle(GeomFill_Boundary)& Bound (const Standard_Integer I) const;
0075   
0076   Standard_EXPORT const Handle(Law_Function)& Func (const Standard_Integer I) const;
0077 
0078 
0079 
0080 
0081   DEFINE_STANDARD_RTTIEXT(GeomFill_CoonsAlgPatch,Standard_Transient)
0082 
0083 protected:
0084 
0085 
0086 
0087 
0088 private:
0089 
0090 
0091   Handle(GeomFill_Boundary) bound[4];
0092   gp_Pnt c[4];
0093   Handle(Law_Function) a[2];
0094 
0095 
0096 };
0097 
0098 
0099 
0100 
0101 
0102 
0103 
0104 #endif // _GeomFill_CoonsAlgPatch_HeaderFile