-- Created on: 1992-10-19
-- Created by: Remi GILET
-- Copyright (c) 1992-1999 Matra Datavision
-- Copyright (c) 1999-2012 OPEN CASCADE SAS
--
-- The content of this file is subject to the Open CASCADE Technology Public
-- License Version 6.5 (the "License"). You may not use the content of this file
-- except in compliance with the License. Please obtain a copy of the License
-- at http://www.opencascade.org and read it completely before using this file.
--
-- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
-- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
--
-- The Original Code and all software distributed under the License is
-- distributed on an "AS IS" basis, without warranty of any kind, and the
-- Initial Developer hereby disclaims all such warranties, including without
-- limitation, any warranties of merchantability, fitness for a particular
-- purpose or non-infringement. Please see the License for the specific terms
-- and conditions governing the rights and limitations under the License.
class Bisec from Bisector
--- Purpose : Bisec provides the bisecting line between two elements
-- This line is trimed by a point
and it's contained in the domain
-- defined by the two vectors , and .
--
-- Definition of the domain:
-- if is true the bisecting line is contained in the sector
-- defined by <-V1> and <-V2> in the sense indirect.
-- if is false the bisecting line is contained in the sector
-- defined by <-V1> and <-V2> in the sense direct.
--
-- is used to define degenerate bisector.
-- if the bisector is an hyperbola and one of this radius is smaller
-- than , the bisector is replaced by a line or semi_line
-- corresponding to one of hyperbola's axes.
-- if the bisector is a parabola on the focal length is smaller than
-- , the bisector is replaced by a semi_line corresponding
-- to the axe of symetrie of the parabola.
-- if the bisector is an ellipse and the minor radius is smaller than
-- , the bisector is replaced by a segment corresponding
-- to the great axe of the ellipse.
uses
TrimmedCurve from Geom2d ,
Curve from Geom2d ,
Curve from Bisector,
Point from Geom2d ,
Pnt2d from gp ,
Vec2d from gp ,
Integer from Standard
is
Create returns Bisec from Bisector;
Perform(me : in out ;
Cu1 : Curve from Geom2d ;
Cu2 : Curve from Geom2d ;
P : Pnt2d from gp ;
V1 : Vec2d from gp ;
V2 : Vec2d from gp ;
Sense : Real from Standard ;
Tolerance : Real from Standard ;
oncurve : Boolean from Standard = Standard_True );
--- Purpose : Performs the bisecting line between the curves
-- and .
-- is True if the point is common to
-- and .
Perform(me : in out ;
Cu : Curve from Geom2d ;
Pnt : Point from Geom2d ;
P : Pnt2d from gp ;
V1 : Vec2d from gp ;
V2 : Vec2d from gp ;
Sense : Real from Standard ;
Tolerance : Real from Standard ;
oncurve : Boolean from Standard = Standard_True);
--- Purpose : Performs the bisecting line between the curve
-- and the point .
-- is True if the point is the point .
Perform(me : in out ;
Pnt : Point from Geom2d ;
Cu : Curve from Geom2d ;
P : Pnt2d from gp ;
V1 : Vec2d from gp ;
V2 : Vec2d from gp ;
Sense : Real from Standard ;
Tolerance : Real from Standard ;
oncurve : Boolean from Standard = Standard_True );
--- Purpose : Performs the bisecting line between the curve
-- and the point .
-- is True if the point is the point .
Perform(me : in out ;
Pnt1 : Point from Geom2d ;
Pnt2 : Point from Geom2d ;
P : Pnt2d from gp ;
V1 : Vec2d from gp ;
V2 : Vec2d from gp ;
Sense : Real from Standard ;
Tolerance : Real from Standard = 0.0 ;
oncurve : Boolean from Standard = Standard_True ) ;
--- Purpose : Performs the bisecting line between the two points
-- and .
Value(me) returns TrimmedCurve from Geom2d
--- Purpose : Returns the Curve of .
---C++: return const &
is static;
ChangeValue (me : in out) returns mutable TrimmedCurve from Geom2d
--- Purpose : Returns the Curve of .
--
---C++: return const &
is static;
fields
thebisector : TrimmedCurve from Geom2d;
end Bisec;