b311480e |
1 | -- Created on: 1995-01-09 |
2 | -- Created by: Modelistation |
3 | -- Copyright (c) 1995-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 | class Wedge from BRepPrim inherits GWedge from BRepPrim |
24 | |
25 | ---Purpose: Provides constructors without Builders. |
26 | |
27 | uses |
28 | Ax2 from gp, |
29 | Pnt from gp |
30 | |
31 | raises |
32 | DomainError |
33 | |
34 | is |
35 | |
36 | Create(Axes : Ax2 from gp; dx, dy, dz : Real) |
37 | returns Wedge from BRepPrim |
38 | ---Purpose: Creates a Wedge algorithm. <Axes> is the axis |
39 | -- system for the primitive. |
40 | -- |
41 | -- XMin, YMin, ZMin are set to 0 |
42 | -- XMax, YMax, ZMax are set to dx, dy, dz |
43 | -- Z2Min = ZMin |
44 | -- Z2Max = ZMax |
45 | -- X2Min = XMin |
46 | -- X2Max = XMax |
47 | -- The result is a box |
48 | -- dx,dy,dz should be positive |
49 | raises DomainError; |
50 | |
51 | Create(Axes : Ax2 from gp; dx, dy, dz, ltx : Real) |
52 | returns Wedge from BRepPrim |
53 | ---Purpose: Creates a Wedge primitive. <Axes> is the axis |
54 | -- system for the primitive. |
55 | -- |
56 | -- XMin, YMin, ZMin are set to 0 |
57 | -- XMax, YMax, ZMax are set to dx, dy, dz |
58 | -- Z2Min = ZMin |
59 | -- Z2Max = ZMax |
60 | -- X2Min = ltx |
61 | -- X2Max = ltx |
62 | -- The result is a STEP right angular wedge |
63 | -- dx,dy,dz should be positive |
64 | -- ltx should not be negative |
65 | raises DomainError; |
66 | |
67 | Create(Axes : Ax2 from gp; xmin, ymin, zmin, z2min, x2min, |
68 | xmax, ymax, zmax, z2max, x2max : Real) |
69 | returns Wedge from BRepPrim |
70 | ---Purpose: Create a Wedge primitive. <Axes> is the axis |
71 | -- system for the primitive. |
72 | -- |
73 | -- all the fields are set to the corresponding value |
74 | -- XYZMax - XYZMin should be positive |
75 | -- ZX2Max - ZX2Min should not be negative |
76 | raises DomainError; |
77 | |
78 | end Wedge; |