1 -- Created on: 1993-01-09
2 -- Created by: CKY / Contract Toubro-Larsen ( SIVA )
3 -- Copyright (c) 1993-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 Torus from IGESSolid inherits IGESEntity
19 ---Purpose: defines Torus, Type <160> Form Number <0>
20 -- in package IGESSolid
21 -- A Torus is a solid formed by revolving a circular disc
22 -- about a specified coplanar axis.
34 -- Specific Methods pertaining to the class
41 ---Purpose : This method is used to set the fields of the class Torus
42 -- - R1 : distance from center of torus to center
43 -- of circular disc to be revolved
44 -- - R2 : radius of circular disc
45 -- - aPoint : center point coordinates (default (0,0,0))
46 -- - anAxis : unit vector in axis direction (default (0,0,1))
48 MajorRadius (me) returns Real;
49 ---Purpose : returns the distance from the center of torus to the center of
50 -- the disc to be revolved
52 DiscRadius (me) returns Real;
53 ---Purpose : returns the radius of the disc to be revolved
55 AxisPoint (me) returns Pnt;
56 ---Purpose : returns the center of torus
58 TransformedAxisPoint (me) returns Pnt;
59 ---Purpose : returns the center of torus after applying TransformationMatrix
61 Axis (me) returns Dir;
62 ---Purpose : returns direction of the axis
64 TransformedAxis (me) returns Dir;
65 ---Purpose : returns direction of the axis after applying TransformationMatrix
70 -- Class : IGESSolid_Torus
72 -- Purpose : Declaration of variables specific to the definition
73 -- of the Class Torus.
75 -- Reminder : A Torus instance is defined by :
76 -- the distance from the axis to the center of the disc(R1),
77 -- the radius of the disc(R2), the center of the torus(X1,Y1,Z1)
78 -- and the direction of the axis(I1,J1,K1)
82 -- the distance from the axis to the center of the disc
85 -- the radius of the disc
88 -- the center of the torus
91 -- the direction of the axis