1 -- Created on: 1995-03-22
2 -- Created by: Laurent BUCHARD
3 -- Copyright (c) 1995-1999 Matra Datavision
4 -- Copyright (c) 1999-2012 OPEN CASCADE SAS
6 -- The content of this file is subject to the Open CASCADE Technology Public
7 -- License Version 6.5 (the "License"). You may not use the content of this file
8 -- except in compliance with the License. Please obtain a copy of the License
9 -- at http://www.opencascade.org and read it completely before using this file.
11 -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12 -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
14 -- The Original Code and all software distributed under the License is
15 -- distributed on an "AS IS" basis, without warranty of any kind, and the
16 -- Initial Developer hereby disclaims all such warranties, including without
17 -- limitation, any warranties of merchantability, fitness for a particular
18 -- purpose or non-infringement. Please see the License for the specific terms
19 -- and conditions governing the rights and limitations under the License.
23 class FClass2d from IntTools
25 ---Purpose: Class provides an algorithm to classify a 2d Point
26 --- in 2d space of face using boundaries of the face.
32 SequenceOfInteger from TColStd,
33 SeqOfPtr from BRepTopAdaptor
37 returns FClass2d from IntTools;
42 Create( F: Face from TopoDS;
43 Tol: Real from Standard)
44 returns FClass2d from IntTools;
46 --- Initializes algorithm by the face F
52 Tol: Real from Standard);
54 --- Initializes algorithm by the face F
58 PerformInfinitePoint(me)
59 returns State from TopAbs;
61 --- Returns state of infinite 2d point relatively to (0, 0)
66 RecadreOnPeriodic: Boolean from Standard=Standard_True)
67 returns State from TopAbs;
69 --- Returns state of the 2d point Puv.
70 --- If RecadreOnPeriodic is true (defalut value),
71 --- for the periodic surface 2d point, adjusted to period, is
84 Tol: Real from Standard;
85 RecadreOnPeriodic: Boolean from Standard = Standard_True)
86 returns State from TopAbs;
88 --- Test a point with +- an offset (Tol) and returns
89 --- On if some points are OUT an some are IN
90 -- (Caution: Internal use . see the code for more details)
93 --modified by NIZNHY-PKV Mon May 29 10:47:52 2006f
95 returns Boolean from Standard;
96 --modified by NIZNHY-PKV Mon May 29 10:47:54 2006t
100 TabClass : SeqOfPtr from BRepTopAdaptor;
101 TabOrien : SequenceOfInteger from TColStd;
102 Toluv : Real from Standard;
103 Face : Face from TopoDS;
104 U1 : Real from Standard;
105 V1 : Real from Standard;
106 U2 : Real from Standard;
107 V2 : Real from Standard;
109 Umin : Real from Standard;
110 Umax : Real from Standard;
111 Vmin : Real from Standard;
112 Vmax : Real from Standard;
113 --modified by NIZNHY-PKV Mon May 29 10:44:12 2006f
114 myIsHole : Boolean from Standard;
115 --modified by NIZNHY-PKV Mon May 29 10:44:14 2006t