b311480e |
1 | -- Created on: 1997-02-24 |
2 | -- Created by: Jacques GOUSSARD |
3 | -- Copyright (c) 1997-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 | |
21 | |
7fd59977 |
22 | |
7fd59977 |
23 | class Prism from LocOpe |
24 | |
25 | ---Purpose: Defines a prism (using Prism from BRepSweep) |
26 | -- with modifications provided for the Prism feature. |
27 | |
28 | |
29 | uses DataMapOfShapeListOfShape from TopTools, |
30 | ListOfShape from TopTools, |
31 | |
32 | Shape from TopoDS, |
33 | SequenceOfCurve from TColGeom, |
34 | Curve from Geom, |
35 | Vec from gp |
36 | |
37 | |
38 | raises NoSuchObject from Standard, |
39 | NotDone from StdFail |
40 | |
41 | is |
42 | |
43 | Create |
44 | |
45 | returns Prism from LocOpe; |
46 | |
47 | |
48 | Create (Base : Shape from TopoDS; |
49 | V : Vec from gp) |
50 | |
51 | returns Prism from LocOpe; |
52 | |
53 | Create (Base : Shape from TopoDS; |
54 | V : Vec from gp; |
55 | Vectra : Vec from gp) |
56 | |
57 | returns Prism from LocOpe; |
58 | |
59 | |
60 | Perform(me: in out; Base: Shape from TopoDS; |
61 | V : Vec from gp) |
62 | |
63 | is static; |
64 | |
65 | |
66 | Perform(me: in out; Base : Shape from TopoDS; |
67 | V,Vtra : Vec from gp) |
68 | |
69 | is static; |
70 | |
71 | |
72 | FirstShape(me) |
73 | |
74 | returns Shape from TopoDS |
75 | ---C++: return const & |
76 | is static; |
77 | |
78 | |
79 | LastShape(me) |
80 | |
81 | returns Shape from TopoDS |
82 | ---C++: return const & |
83 | is static; |
84 | |
85 | |
86 | Shape(me) |
87 | |
88 | returns Shape from TopoDS |
89 | raises NotDone from StdFail |
90 | ---C++: return const & |
91 | is static; |
92 | |
93 | |
94 | Shapes(me; S: Shape from TopoDS) |
95 | |
96 | returns ListOfShape from TopTools |
97 | ---C++: return const & |
98 | raises NoSuchObject from Standard |
99 | -- The exception is raised if S is not a subshape of the profile |
100 | is static; |
101 | |
102 | |
103 | Curves(me; SCurves: in out SequenceOfCurve from TColGeom) |
104 | |
105 | is static; |
106 | |
107 | |
108 | BarycCurve(me) |
109 | |
110 | returns Curve from Geom |
111 | is static; |
112 | |
113 | IntPerf(me: in out) |
114 | |
115 | is static private; |
116 | |
117 | |
118 | fields |
119 | |
120 | myBase : Shape from TopoDS; |
121 | myVec : Vec from gp; |
122 | myTra : Vec from gp; |
123 | myIsTrans : Boolean from Standard; |
124 | myDone : Boolean from Standard; |
125 | myRes : Shape from TopoDS; |
126 | myFirstShape : Shape from TopoDS; |
127 | myLastShape : Shape from TopoDS; |
128 | myMap : DataMapOfShapeListOfShape from TopTools; |
129 | |
130 | end Prism; |