1 -- Created on: 2001-03-11
2 -- Created by: Peter KURNEV
3 -- Copyright (c) 2001-2012 OPEN CASCADE SAS
5 -- The content of this file is subject to the Open CASCADE Technology Public
6 -- License Version 6.5 (the "License"). You may not use the content of this file
7 -- except in compliance with the License. Please obtain a copy of the License
8 -- at http://www.opencascade.org and read it completely before using this file.
10 -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
11 -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13 -- The Original Code and all software distributed under the License is
14 -- distributed on an "AS IS" basis, without warranty of any kind, and the
15 -- Initial Developer hereby disclaims all such warranties, including without
16 -- limitation, any warranties of merchantability, fitness for a particular
17 -- purpose or non-infringement. Please see the License for the specific terms
18 -- and conditions governing the rights and limitations under the License.
22 class ShrunkRange from IntTools
25 --- The class provides the computation of
26 --- a working (shrunk) range [t1, t2] for
27 --- the 3D-curve of the edge.
41 returns ShrunkRange from IntTools;
46 Create (aE : Edge from TopoDS;
47 aV1 : Vertex from TopoDS;
48 aV2 : Vertex from TopoDS;
49 aR : Range from IntTools;
50 ICtx: Context from IntTools)
51 returns ShrunkRange from IntTools;
55 aContext : Context from IntTools);
57 --- Sets the intersecton context
60 returns Context from IntTools;
61 ---C++: return const &
63 --- Gets the intersecton context
67 SetShrunkRange(me:out; aR:Range from IntTools);
69 --- Sets an shrunk range
73 returns Range from IntTools;
76 --- Returns shrunk range
83 --- Returns bounding box for edge restricted
88 returns Edge from TopoDS;
91 --- Returns edge for which
92 --- the shrunk range is computed
97 --- Computes shrunk range for
98 --- an edge given in constructor
103 returns Boolean from Standard;
105 --- Returns true if no error occured
106 --- during shrunk range computation
110 returns Integer from Standard;
112 --- Returns code of computing shrunk range
114 --- 0 - means successful completion
115 --- 1 - nothing has been done
116 --- 2 - initial range is out of edge's range
117 --- 3 - first boundary of initial range is more than
119 --- 4 - projection of first vertex failed
120 --- 5 - projection of second vertex failed
121 --- 6 - shrunk range can not be computed
122 --- shrunk range is setted to initial range
126 myEdge : Edge from TopoDS;
127 myV1 : Vertex from TopoDS;
128 myV2 : Vertex from TopoDS;
129 myRange : Range from IntTools;
130 myShrunkRange : Range from IntTools;
131 myBndBox : Box from Bnd;
132 myContext : Context from IntTools;
133 myIsDone : Boolean from Standard;
134 myErrorStatus : Integer from Standard;