0023024: Update headers of OCCT files
[occt.git] / src / BRepPrim / BRepPrim_Torus.cdl
CommitLineData
b311480e 1-- Created on: 1992-11-05
2-- Created by: Remi LEQUETTE
3-- Copyright (c) 1992-1999 Matra Datavision
4-- Copyright (c) 1999-2012 OPEN CASCADE SAS
5--
6-- The content of this file is subject to the Open CASCADE Technology Public
7-- License Version 6.5 (the "License"). You may not use the content of this file
8-- except in compliance with the License. Please obtain a copy of the License
9-- at http://www.opencascade.org and read it completely before using this file.
10--
11-- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12-- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13--
14-- The Original Code and all software distributed under the License is
15-- distributed on an "AS IS" basis, without warranty of any kind, and the
16-- Initial Developer hereby disclaims all such warranties, including without
17-- limitation, any warranties of merchantability, fitness for a particular
18-- purpose or non-infringement. Please see the License for the specific terms
19-- and conditions governing the rights and limitations under the License.
20
7fd59977 21
22
23
24class Torus from BRepPrim inherits Revolution from BRepPrim
25
26 ---Purpose: Implements the torus primitive
27
28uses
29 Face from TopoDS,
30
31 Pnt from gp,
32 Ax2 from gp
33
34raises
35 DomainError
36
37is
38 Create(Position : Ax2 from gp; Major : Real; Minor : Real)
39 returns Torus from BRepPrim
40 ---Purpose: the STEP definition
41 -- Position : center and axes
42 -- Major, Minor : Radii
43 --
44 -- Errors : Major < Resolution
45 -- Minor < Resolution
46 raises DomainError;
47
48 Create(Major,Minor : Real)
49 returns Torus from BRepPrim
50 ---Purpose: Torus centered at origin
51 raises DomainError;
52
53 Create(Center : Pnt from gp; Major, Minor : Real)
54 returns Torus from BRepPrim
55 ---Purpose: Torus at Center
56 raises DomainError;
57
58 MakeEmptyLateralFace(me) returns Face from TopoDS
59 ---Purpose: The surface normal should be directed towards the
60 -- outside.
61 is redefined;
62
63 SetMeridian(me : in out)
64 is static private;
65
66fields
67 myMajor : Real;
68 myMinor : Real;
69
70end Torus;