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
6 // This file is part of Open CASCADE Technology software library.
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.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _BRepFill_TrimEdgeTool_HeaderFile
18 #define _BRepFill_TrimEdgeTool_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
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>
33 class Geom2d_Geometry;
40 //! Geometric Tool using to construct Offset Wires.
41 class BRepFill_TrimEdgeTool
48 Standard_EXPORT BRepFill_TrimEdgeTool();
50 Standard_EXPORT BRepFill_TrimEdgeTool(const Bisector_Bisec& Bisec, const Handle(Geom2d_Geometry)& S1, const Handle(Geom2d_Geometry)& S2, const Standard_Real Offset);
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) ;
54 Standard_EXPORT void AddOrConfuse (const Standard_Boolean Start, const TopoDS_Edge& Edge1, const TopoDS_Edge& Edge2, TColgp_SequenceOfPnt& Params) const;
56 Standard_EXPORT Standard_Boolean IsInside (const gp_Pnt2d& P) const;
71 Standard_Boolean isPoint1;
72 Standard_Boolean isPoint2;
75 Handle(Geom2d_Curve) myC1;
76 Handle(Geom2d_Curve) myC2;
77 Standard_Real myOffset;
78 Bisector_Bisec myBisec;
79 Geom2dAdaptor_Curve myBis;
90 #endif // _BRepFill_TrimEdgeTool_HeaderFile