1 -- File: ConeToBSplineSurface.cdl
2 -- Created: Thu Oct 10 15:39:30 1991
3 -- Author: Jean Claude VAUTHIER
4 ---Copyright: Matra Datavision 1991, 1992
6 class ConeToBSplineSurface from Convert
9 -- This algorithm converts a bounded Cone into a rational
11 -- The cone a Cone from package gp. Its parametrization is :
12 -- P (U, V) = Loc + V * Zdir +
13 -- (R + V*Tan(Ang)) * (Cos(U)*Xdir + Sin(U)*Ydir)
14 -- where Loc is the location point of the cone, Xdir, Ydir and Zdir
15 -- are the normalized directions of the local cartesian coordinate
16 -- system of the cone (Zdir is the direction of the Cone's axis) ,
17 -- Ang is the cone semi-angle. The U parametrization range is
20 -- Convert, Cone, BSplineSurface.
22 inherits ElementarySurfaceToBSplineSurface
26 raises DomainError from Standard
30 Create (C : Cone; U1, U2, V1, V2 : Real) returns ConeToBSplineSurface
32 -- The equivalent B-spline surface as the same orientation as the
33 -- Cone in the U and V parametric directions.
36 -- Raised if U1 = U2 or U1 = U2 + 2.0 * Pi
40 Create (C : Cone; V1, V2 : Real) returns ConeToBSplineSurface
42 -- The equivalent B-spline surface as the same orientation as the
43 -- Cone in the U and V parametric directions.
50 end ConeToBSplineSurface;