42cf5bc1 |
1 | // Created on: 1995-04-24 |
2 | // Created by: Bruno DUMORTIER |
3 | // Copyright (c) 1995-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 _BRepFill_TrimEdgeTool_HeaderFile |
18 | #define _BRepFill_TrimEdgeTool_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_DefineAlloc.hxx> |
22 | #include <Standard_Handle.hxx> |
23 | |
24 | #include <Standard_Boolean.hxx> |
25 | #include <gp_Pnt2d.hxx> |
26 | #include <Standard_Real.hxx> |
27 | #include <Bisector_Bisec.hxx> |
28 | #include <Geom2dAdaptor_Curve.hxx> |
29 | #include <GeomAbs_JoinType.hxx> |
30 | #include <TColgp_SequenceOfPnt.hxx> |
31 | class Geom2d_Curve; |
32 | class Bisector_Bisec; |
33 | class Geom2d_Geometry; |
34 | class TopoDS_Edge; |
46767247 |
35 | class TopoDS_Shape; |
36 | class TopoDS_Vertex; |
42cf5bc1 |
37 | class gp_Pnt2d; |
38 | |
39 | |
40 | //! Geometric Tool using to construct Offset Wires. |
41 | class BRepFill_TrimEdgeTool |
42 | { |
43 | public: |
44 | |
45 | DEFINE_STANDARD_ALLOC |
46 | |
47 | |
48 | Standard_EXPORT BRepFill_TrimEdgeTool(); |
49 | |
50 | Standard_EXPORT BRepFill_TrimEdgeTool(const Bisector_Bisec& Bisec, const Handle(Geom2d_Geometry)& S1, const Handle(Geom2d_Geometry)& S2, const Standard_Real Offset); |
51 | |
46767247 |
52 | Standard_EXPORT void IntersectWith (const TopoDS_Edge& Edge1, const TopoDS_Edge& Edge2, const TopoDS_Shape& InitShape1, const TopoDS_Shape& InitShape2, const TopoDS_Vertex& End1, const TopoDS_Vertex& End2, const GeomAbs_JoinType theJoinType, const Standard_Boolean IsOpenResult, TColgp_SequenceOfPnt& Params) ; |
42cf5bc1 |
53 | |
54 | Standard_EXPORT void AddOrConfuse (const Standard_Boolean Start, const TopoDS_Edge& Edge1, const TopoDS_Edge& Edge2, TColgp_SequenceOfPnt& Params) const; |
55 | |
56 | Standard_EXPORT Standard_Boolean IsInside (const gp_Pnt2d& P) const; |
57 | |
58 | |
59 | |
60 | |
61 | protected: |
62 | |
63 | |
64 | |
65 | |
66 | |
67 | private: |
68 | |
69 | |
70 | |
71 | Standard_Boolean isPoint1; |
72 | Standard_Boolean isPoint2; |
73 | gp_Pnt2d myP1; |
74 | gp_Pnt2d myP2; |
75 | Handle(Geom2d_Curve) myC1; |
76 | Handle(Geom2d_Curve) myC2; |
77 | Standard_Real myOffset; |
78 | Bisector_Bisec myBisec; |
79 | Geom2dAdaptor_Curve myBis; |
80 | |
81 | |
82 | }; |
83 | |
84 | |
85 | |
86 | |
87 | |
88 | |
89 | |
90 | #endif // _BRepFill_TrimEdgeTool_HeaderFile |