b311480e |
1 | -- Created on: 1995-12-01 |
2 | -- Created by: EXPRESS->CDL V0.2 Translator |
3 | -- Copyright (c) 1995-1999 Matra Datavision |
973c2be1 |
4 | -- Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
5 | -- |
973c2be1 |
6 | -- This file is part of Open CASCADE Technology software library. |
b311480e |
7 | -- |
d5f74e42 |
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 |
973c2be1 |
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. |
b311480e |
13 | -- |
973c2be1 |
14 | -- Alternatively, this file may be used under the terms of Open CASCADE |
15 | -- commercial license or contractual agreement. |
7fd59977 |
16 | |
17 | class CsgPrimitive from StepShape inherits SelectType from StepData |
18 | |
19 | -- <CsgPrimitive> is an EXPRESS Select Type construct translation. |
20 | -- it gathers : Sphere, Block, RightAngularWedge, Torus, RightCircularCone, RightCircularCylinder |
21 | |
22 | uses |
23 | |
24 | Sphere, |
25 | Block, |
26 | RightAngularWedge, |
27 | Torus, |
28 | RightCircularCone, |
29 | RightCircularCylinder |
30 | is |
31 | |
32 | Create returns CsgPrimitive; |
33 | ---Purpose : Returns a CsgPrimitive SelectType |
34 | |
35 | CaseNum (me; ent : Transient) returns Integer; |
36 | ---Purpose: Recognizes a CsgPrimitive Kind Entity that is : |
37 | -- 1 -> Sphere |
38 | -- 2 -> Block |
39 | -- 3 -> RightAngularWedge |
40 | -- 4 -> Torus |
41 | -- 5 -> RightCircularCone |
42 | -- 6 -> RightCircularCylinder |
43 | -- 0 else |
44 | |
45 | Sphere (me) returns any Sphere; |
46 | ---Purpose : returns Value as a Sphere (Null if another type) |
47 | |
48 | Block (me) returns any Block; |
49 | ---Purpose : returns Value as a Block (Null if another type) |
50 | |
51 | RightAngularWedge (me) returns any RightAngularWedge; |
52 | ---Purpose : returns Value as a RightAngularWedge (Null if another type) |
53 | |
54 | Torus (me) returns any Torus; |
55 | ---Purpose : returns Value as a Torus (Null if another type) |
56 | |
57 | RightCircularCone (me) returns any RightCircularCone; |
58 | ---Purpose : returns Value as a RightCircularCone (Null if another type) |
59 | |
60 | RightCircularCylinder (me) returns any RightCircularCylinder; |
61 | ---Purpose : returns Value as a RightCircularCylinder (Null if another type) |
62 | |
63 | |
64 | end CsgPrimitive; |
65 | |