4e14c88f |
1 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
2 | // |
3 | // This file is part of Open CASCADE Technology software library. |
4 | // |
5 | // This library is free software; you can redistribute it and/or modify it under |
6 | // the terms of the GNU Lesser General Public License version 2.1 as published |
7 | // by the Free Software Foundation, with special exception defined in the file |
8 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
9 | // distribution for complete text of the license and disclaimer of any warranty. |
10 | // |
11 | // Alternatively, this file may be used under the terms of Open CASCADE |
12 | // commercial license or contractual agreement. |
13 | |
14 | #ifndef _IntPatch_WLineTool_HeaderFile |
15 | #define _IntPatch_WLineTool_HeaderFile |
16 | |
17 | #include <Standard_Boolean.hxx> |
18 | #include <Standard_Macro.hxx> |
19 | #include <IntPatch_WLine.hxx> |
20 | #include <IntPatch_SequenceOfLine.hxx> |
21 | class TopoDS_Face; |
22 | class GeomAdaptor_HSurface; |
23 | class GeomInt_LineConstructor; |
24 | class IntTools_Context; |
25 | class Adaptor3d_TopolTool; |
26 | class Adaptor3d_HSurface; |
27 | |
28 | //! IntPatch_WLineTool provides set of static methods related to walking lines. |
29 | class IntPatch_WLineTool |
30 | { |
31 | public: |
32 | |
33 | DEFINE_STANDARD_ALLOC |
34 | |
35 | //! I |
36 | //! Removes equal points (leave one of equal points) from theWLine |
37 | //! and recompute vertex parameters. |
38 | //! |
39 | //! II |
40 | //! Removes point out of borders in case of non periodic surfaces. |
41 | //! |
42 | //! III |
43 | //! Removes exceed points using tube criteria: |
44 | //! delete 7D point if it lies near to expected lines in 2d and 3d. |
45 | //! Each task (2d, 2d, 3d) have its own tolerance and checked separately. |
46 | //! |
47 | //! Returns new WLine or null WLine if the number |
48 | //! of the points is less than 2. |
49 | Standard_EXPORT static |
50 | Handle(IntPatch_WLine) ComputePurgedWLine(const Handle(IntPatch_WLine) &theWLine, |
51 | const Handle(Adaptor3d_HSurface) &theS1, |
52 | const Handle(Adaptor3d_HSurface) &theS2, |
53 | const Handle(Adaptor3d_TopolTool) &theDom1, |
54 | const Handle(Adaptor3d_TopolTool) &theDom2); |
55 | |
56 | //! Joins all WLines from theSlin to one if it is possible and records |
57 | //! the result into theSlin again. Lines will be kept to be splitted if: |
58 | //! a) they are separated (has no common points); |
59 | //! b) resulted line (after joining) go through seam-edges or surface boundaries. |
60 | //! |
61 | //! In addition, if points in theSPnt lies at least in one of the line in theSlin, |
62 | //! this point will be deleted. |
63 | Standard_EXPORT static void JoinWLines(IntPatch_SequenceOfLine& theSlin, |
64 | IntPatch_SequenceOfPoint& theSPnt, |
65 | const Standard_Real theTol3D, |
66 | const Standard_Real theU1Period, |
67 | const Standard_Real theU2Period, |
68 | const Standard_Real theV1Period, |
69 | const Standard_Real theV2Period, |
70 | const Standard_Real theUfSurf1, |
71 | const Standard_Real theUlSurf1, |
72 | const Standard_Real theVfSurf1, |
73 | const Standard_Real theVlSurf1, |
74 | const Standard_Real theUfSurf2, |
75 | const Standard_Real theUlSurf2, |
76 | const Standard_Real theVfSurf2, |
77 | const Standard_Real theVlSurf2); |
78 | |
79 | }; |
80 | |
81 | #endif |