Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created on: 1993-11-09
0002 // Created by: Laurent BOURESCHE
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 _ChFi3d_HeaderFile
0018 #define _ChFi3d_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <TopAbs_Orientation.hxx>
0025 #include <Standard_Boolean.hxx>
0026 #include <ChFiDS_TypeOfConcavity.hxx>
0027 #include <GeomAbs_Shape.hxx>
0028 class BRepAdaptor_Surface;
0029 class TopoDS_Edge;
0030 class TopoDS_Face;
0031 
0032 
0033 //! creation of spatial fillets on a solid.
0034 class ChFi3d 
0035 {
0036 public:
0037 
0038   DEFINE_STANDARD_ALLOC
0039 
0040   //! Defines the type of concavity in the edge of connection of two faces
0041   Standard_EXPORT static ChFiDS_TypeOfConcavity DefineConnectType (const TopoDS_Edge&     E,
0042                                                                    const TopoDS_Face&     F1,
0043                                                                    const TopoDS_Face&     F2,
0044                                                                    const Standard_Real    SinTol,
0045                                                                    const Standard_Boolean CorrectPoint);
0046 
0047   //! Returns true if theEdge between theFace1 and theFace2 is tangent
0048   Standard_EXPORT static Standard_Boolean IsTangentFaces (const TopoDS_Edge& theEdge,
0049                                                           const TopoDS_Face& theFace1,
0050                                                           const TopoDS_Face& theFace2,
0051                                                           const GeomAbs_Shape Order = GeomAbs_G1);
0052 
0053   //! Returns  Reversed  in  Or1  and(or)  Or2  if
0054   //! the  concave edge  defined by the  interior of faces F1 and F2,
0055   //! in  the  neighbourhood of  their boundary E is of the edge opposite to  the
0056   //! normal  of their surface  support.  The  orientation of
0057   //! faces is  not  taken  into  consideration in  the calculation. The
0058   //! function  returns  0 if  the calculation fails (tangence),
0059   //! if  not, it  returns the  number of  choice of  the fillet
0060   //! or chamfer corresponding to  the orientations  calculated
0061   //! and  to  the tangent to  the  guide line read in  E.
0062   Standard_EXPORT static Standard_Integer ConcaveSide (const BRepAdaptor_Surface& S1, const BRepAdaptor_Surface& S2, const TopoDS_Edge& E, TopAbs_Orientation& Or1, TopAbs_Orientation& Or2);
0063   
0064   //! Same  as ConcaveSide, but the orientations are
0065   //! logically  deduced from  the result of  the call of
0066   //! ConcaveSide on  the  first pair of faces of  the fillet or
0067   //! chamnfer.
0068   Standard_EXPORT static Standard_Integer NextSide (TopAbs_Orientation& Or1, TopAbs_Orientation& Or2, const TopAbs_Orientation OrSave1, const TopAbs_Orientation OrSave2, const Standard_Integer ChoixSauv);
0069   
0070   //! Same  as  the  other NextSide, but the calculation is  done
0071   //! on an edge  only.
0072   Standard_EXPORT static void NextSide (TopAbs_Orientation& Or, const TopAbs_Orientation OrSave, const TopAbs_Orientation OrFace);
0073   
0074   //! Enables  to  determine while  processing  an  angle, if
0075   //! two fillets or chamfers constituting a face have
0076   //! identic or opposed  concave  edges.
0077   Standard_EXPORT static Standard_Boolean SameSide (const TopAbs_Orientation Or, const TopAbs_Orientation OrSave1, const TopAbs_Orientation OrSave2, const TopAbs_Orientation OrFace1, const TopAbs_Orientation OrFace2);
0078 
0079 };
0080 
0081 #endif // _ChFi3d_HeaderFile