blob: a55f3de1b897ba7e80408fffba42ff0c52bdce7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
-- File: ConeToBSplineSurface.cdl
-- Created: Thu Oct 10 15:39:30 1991
-- Author: Jean Claude VAUTHIER
---Copyright: Matra Datavision 1991, 1992
class ConeToBSplineSurface from Convert
--- Purpose :
-- This algorithm converts a bounded Cone into a rational
-- B-spline surface.
-- The cone a Cone from package gp. Its parametrization is :
-- P (U, V) = Loc + V * Zdir +
-- (R + V*Tan(Ang)) * (Cos(U)*Xdir + Sin(U)*Ydir)
-- where Loc is the location point of the cone, Xdir, Ydir and Zdir
-- are the normalized directions of the local cartesian coordinate
-- system of the cone (Zdir is the direction of the Cone's axis) ,
-- Ang is the cone semi-angle. The U parametrization range is
-- [0, 2PI].
--- KeyWords :
-- Convert, Cone, BSplineSurface.
inherits ElementarySurfaceToBSplineSurface
uses Cone from gp
raises DomainError from Standard
is
Create (C : Cone; U1, U2, V1, V2 : Real) returns ConeToBSplineSurface
--- Purpose :
-- The equivalent B-spline surface as the same orientation as the
-- Cone in the U and V parametric directions.
raises DomainError;
--- Purpose :
-- Raised if U1 = U2 or U1 = U2 + 2.0 * Pi
-- Raised if V1 = V2.
Create (C : Cone; V1, V2 : Real) returns ConeToBSplineSurface
--- Purpose :
-- The equivalent B-spline surface as the same orientation as the
-- Cone in the U and V parametric directions.
raises DomainError;
--- Purpose :
-- Raised if V1 = V2.
end ConeToBSplineSurface;
|