42cf5bc1 |
1 | // Created on: 1993-12-23 |
2 | // Created by: Isabelle GRIGNON |
3 | // Copyright (c) 1993-1999 Matra Datavision |
4 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
5 | // |
6 | // This file is part of Open CASCADE Technology software library. |
7 | // |
8 | // This library is free software; you can redistribute it and/or modify it under |
9 | // the terms of the GNU Lesser General Public License version 2.1 as published |
10 | // by the Free Software Foundation, with special exception defined in the file |
11 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
12 | // distribution for complete text of the license and disclaimer of any warranty. |
13 | // |
14 | // Alternatively, this file may be used under the terms of Open CASCADE |
15 | // commercial license or contractual agreement. |
16 | |
17 | #ifndef _ChFiKPart_ComputeData_HeaderFile |
18 | #define _ChFiKPart_ComputeData_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_DefineAlloc.hxx> |
22 | #include <Standard_Handle.hxx> |
23 | |
24 | #include <Standard_Boolean.hxx> |
25 | #include <TopAbs_Orientation.hxx> |
26 | #include <Standard_Integer.hxx> |
27 | #include <Standard_Real.hxx> |
28 | class TopOpeBRepDS_DataStructure; |
29 | class ChFiDS_SurfData; |
30 | class Adaptor3d_HSurface; |
31 | class ChFiDS_Spine; |
32 | class gp_Pnt2d; |
33 | |
34 | |
35 | //! Methodes de classe permettant de remplir une |
36 | //! SurfData dans les cas particuliers de conges |
37 | //! suivants: |
38 | //! - cylindre entre 2 surfaces planes, |
39 | //! - tore/sphere entre un plan et un cylindre othogonal, |
40 | //! - tore/sphere entre un plan et un cone othogonal, |
41 | //! |
42 | //! - tore entre un plan et une droite orthogonale (rotule). |
43 | class ChFiKPart_ComputeData |
44 | { |
45 | public: |
46 | |
47 | DEFINE_STANDARD_ALLOC |
48 | |
49 | |
50 | //! Computes a simple fillet in several particular |
51 | //! cases. |
52 | Standard_EXPORT static Standard_Boolean Compute (TopOpeBRepDS_DataStructure& DStr, Handle(ChFiDS_SurfData)& Data, const Handle(Adaptor3d_HSurface)& S1, const Handle(Adaptor3d_HSurface)& S2, const TopAbs_Orientation Or1, const TopAbs_Orientation Or2, const Handle(ChFiDS_Spine)& Sp, const Standard_Integer Iedge); |
53 | |
54 | //! Computes a toric or spheric corner fillet. |
55 | Standard_EXPORT static Standard_Boolean ComputeCorner (TopOpeBRepDS_DataStructure& DStr, const Handle(ChFiDS_SurfData)& Data, const Handle(Adaptor3d_HSurface)& S1, const Handle(Adaptor3d_HSurface)& S2, const TopAbs_Orientation OrFace1, const TopAbs_Orientation OrFace2, const TopAbs_Orientation Or1, const TopAbs_Orientation Or2, const Standard_Real minRad, const Standard_Real majRad, const gp_Pnt2d& P1S1, const gp_Pnt2d& P2S1, const gp_Pnt2d& P1S2, const gp_Pnt2d& P2S2); |
56 | |
57 | //! Computes spheric corner fillet with non iso pcurve on S2. |
58 | Standard_EXPORT static Standard_Boolean ComputeCorner (TopOpeBRepDS_DataStructure& DStr, const Handle(ChFiDS_SurfData)& Data, const Handle(Adaptor3d_HSurface)& S1, const Handle(Adaptor3d_HSurface)& S2, const TopAbs_Orientation OrFace1, const TopAbs_Orientation OrFace2, const TopAbs_Orientation Or1, const TopAbs_Orientation Or2, const Standard_Real Rad, const gp_Pnt2d& PS1, const gp_Pnt2d& P1S2, const gp_Pnt2d& P2S2); |
59 | |
60 | //! Computes a toric corner rotule. |
61 | Standard_EXPORT static Standard_Boolean ComputeCorner (TopOpeBRepDS_DataStructure& DStr, const Handle(ChFiDS_SurfData)& Data, const Handle(Adaptor3d_HSurface)& S, const Handle(Adaptor3d_HSurface)& S1, const Handle(Adaptor3d_HSurface)& S2, const TopAbs_Orientation OfS, const TopAbs_Orientation OS, const TopAbs_Orientation OS1, const TopAbs_Orientation OS2, const Standard_Real Radius); |
62 | |
63 | |
64 | |
65 | |
66 | protected: |
67 | |
68 | |
69 | |
70 | |
71 | |
72 | private: |
73 | |
74 | |
75 | |
76 | |
77 | |
78 | }; |
79 | |
80 | |
81 | |
82 | |
83 | |
84 | |
85 | |
86 | #endif // _ChFiKPart_ComputeData_HeaderFile |