1 -- Created on: 1994-05-19
2 -- Created by: Yves FRICAUD
3 -- Copyright (c) 1994-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 class BisecAna from Bisector
27 CurveType from GeomAbs,
30 TrimmedCurve from Geom2d,
37 raises DomainError from Standard,
38 RangeError from Standard
41 Create returns mutable BisecAna;
43 Perform(me : mutable ;
44 Cu1 : Curve from Geom2d ;
45 Cu2 : Curve from Geom2d ;
49 Sense : Real from Standard ;
50 Tolerance : Real from Standard ;
51 oncurve : Boolean from Standard = Standard_True );
53 --- Purpose : Performs the bisecting line between the curves
55 -- <oncurve> is True if the point <P> is common to <Cu1>
58 Perform(me : mutable ;
59 Cu : Curve from Geom2d ;
60 Pnt : Point from Geom2d ;
64 Sense : Real from Standard ;
65 Tolerance : Real from Standard ;
66 oncurve : Boolean from Standard = Standard_True);
68 --- Purpose : Performs the bisecting line between the curve
69 -- <Cu1> and the point <Pnt>.
70 -- <oncurve> is True if the point <P> is the point <Pnt>.
72 Perform(me : mutable ;
73 Pnt : Point from Geom2d ;
74 Cu : Curve from Geom2d ;
78 Sense : Real from Standard ;
79 Tolerance : Real from Standard ;
80 oncurve : Boolean from Standard = Standard_True );
82 --- Purpose : Performs the bisecting line between the curve
83 -- <Cu> and the point <Pnt>.
84 -- <oncurve> is True if the point <P> is the point <Pnt>.
87 Perform(me : mutable ;
88 Pnt1 : Point from Geom2d ;
89 Pnt2 : Point from Geom2d ;
93 Sense : Real from Standard ;
94 Tolerance : Real from Standard = 0.0 ;
95 oncurve : Boolean from Standard = Standard_True ) ;
97 --- Purpose : Performs the bisecting line between the two points
101 bisector : TrimmedCurve from Geom2d)
104 IsExtendAtStart (me) returns Boolean from Standard
107 IsExtendAtEnd (me) returns Boolean from Standard
110 SetTrim(me : mutable ; Cu : Curve from Geom2d);
111 --- Purpose : Trim <me> by a domain defined by the curve <Cu>.
112 -- This domain is the set of the points which are
113 -- nearest from <Cu> than the extremitis of <Cu>.
115 SetTrim(me : mutable ; uf, ul : Real from Standard);
116 --- Purpose : Trim <me> by a domain defined by uf and ul
118 Distance(me : mutable ;
120 Bis : Bisec from GccInt ;
123 Sense : Real from Standard ;
124 U : out Real from Standard ;
125 sense : out Boolean from Standard ;
126 ok : out Boolean from Standard )
128 --- Purpose : Returns the distance between the point <P> and
129 -- the bisecting <Bis>.
134 Reverse (me : mutable)
137 ReversedParameter(me; U : Real) returns Real
140 IsCN (me; N : Integer) returns Boolean
141 --- Purpose : Returns the order of continuity of the curve.
143 --- Purpose : Raised if N < 0.
146 Copy (me) returns mutable like me
149 Transform (me : mutable; T : Trsf2d)
152 FirstParameter(me) returns Real
155 LastParameter(me) returns Real
158 IsClosed (me) returns Boolean
161 IsPeriodic (me) returns Boolean
164 Continuity (me) returns Shape from GeomAbs
167 D0(me; U : Real; P : out Pnt2d)
170 D1 (me; U : Real; P : out Pnt2d; V1 : out Vec2d)
173 D2 (me; U : Real; P : out Pnt2d; V1, V2 : out Vec2d)
176 D3 (me; U : Real; P : out Pnt2d; V1, V2, V3 : out Vec2d)
179 DN (me; U : Real; N : Integer) returns Vec2d
182 Geom2dCurve (me) returns Curve from Geom2d
185 Parameter (me ; P : Pnt2d from gp) returns Real
188 ParameterOfStartPoint (me) returns Real
191 ParameterOfEndPoint (me) returns Real
194 NbIntervals (me) returns Integer
195 ---Purpose: If necessary, breaks the curve in intervals of
196 -- continuity <C1>. And returns the number of
200 IntervalFirst(me ; Index : Integer from Standard) returns Real
201 ---Purpose: Returns the first parameter of the current
205 IntervalLast(me ; Index : Integer from Standard) returns Real
206 ---Purpose: Returns the last parameter of the current
210 Dump (me; Deep : Integer = 0; Offset : Integer = 0) is static;
214 thebisector : TrimmedCurve from Geom2d;