Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created on: 1993-12-06
0002 // Created by: Jacques GOUSSARD
0003 // Copyright (c) 1993-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 _BRepBlend_BlendTool_HeaderFile
0018 #define _BRepBlend_BlendTool_HeaderFile
0019 
0020 #include <Adaptor3d_Surface.hxx>
0021 
0022 class gp_Pnt2d;
0023 class Adaptor2d_Curve2d;
0024 class Adaptor3d_HVertex;
0025 
0026 class BRepBlend_BlendTool 
0027 {
0028 public:
0029 
0030   DEFINE_STANDARD_ALLOC
0031 
0032   
0033   //! Projects the point P on the arc C.
0034   //! If the methods returns Standard_True, the projection is
0035   //! successful, and Paramproj is the parameter on the arc
0036   //! of the projected point, Dist is the distance between
0037   //! P and the curve..
0038   //! If the method returns Standard_False, Param proj and Dist
0039   //! are not significant.
0040   Standard_EXPORT static Standard_Boolean Project (const gp_Pnt2d& P, const Handle(Adaptor3d_Surface)& S, const Handle(Adaptor2d_Curve2d)& C, Standard_Real& Paramproj, Standard_Real& Dist);
0041   
0042   Standard_EXPORT static Standard_Boolean Inters (const gp_Pnt2d& P1, const gp_Pnt2d& P2, const Handle(Adaptor3d_Surface)& S, const Handle(Adaptor2d_Curve2d)& C, Standard_Real& Param, Standard_Real& Dist);
0043   
0044   //! Returns the parameter of the vertex V on the edge A.
0045     static Standard_Real Parameter (const Handle(Adaptor3d_HVertex)& V, const Handle(Adaptor2d_Curve2d)& A);
0046   
0047   //! Returns the parametric tolerance on the arc A
0048   //! used to consider that the vertex and another point meet,
0049   //! i-e if Abs(Parameter(Vertex)-Parameter(OtherPnt))<=
0050   //! Tolerance, the points are "merged".
0051     static Standard_Real Tolerance (const Handle(Adaptor3d_HVertex)& V, const Handle(Adaptor2d_Curve2d)& A);
0052   
0053     static Standard_Boolean SingularOnUMin (const Handle(Adaptor3d_Surface)& S);
0054   
0055     static Standard_Boolean SingularOnUMax (const Handle(Adaptor3d_Surface)& S);
0056   
0057     static Standard_Boolean SingularOnVMin (const Handle(Adaptor3d_Surface)& S);
0058   
0059     static Standard_Boolean SingularOnVMax (const Handle(Adaptor3d_Surface)& S);
0060   
0061   Standard_EXPORT static Standard_Integer NbSamplesU (const Handle(Adaptor3d_Surface)& S, const Standard_Real u1, const Standard_Real u2);
0062   
0063   Standard_EXPORT static Standard_Integer NbSamplesV (const Handle(Adaptor3d_Surface)& S, const Standard_Real v1, const Standard_Real v2);
0064   
0065   //! Returns the parametric limits on the arc C.
0066   //! These limits must be finite : they are either
0067   //! the real limits of the arc, for a finite arc,
0068   //! or a bounding box for an infinite arc.
0069   Standard_EXPORT static void Bounds (const Handle(Adaptor2d_Curve2d)& C, Standard_Real& Ufirst, Standard_Real& Ulast);
0070   
0071     static Handle(Adaptor2d_Curve2d) CurveOnSurf (const Handle(Adaptor2d_Curve2d)& C, const Handle(Adaptor3d_Surface)& S);
0072 
0073 
0074 
0075 
0076 protected:
0077 
0078 
0079 
0080 
0081 
0082 private:
0083 
0084 
0085 
0086 
0087 
0088 };
0089 
0090 
0091 #include <BRepBlend_BlendTool.lxx>
0092 
0093 
0094 
0095 
0096 
0097 #endif // _BRepBlend_BlendTool_HeaderFile