b311480e |
1 | -- Created on: 1993-01-09 |
2 | -- Created by: CKY / Contract Toubro-Larsen ( SIVA ) |
3 | -- Copyright (c) 1993-1999 Matra Datavision |
973c2be1 |
4 | -- Copyright (c) 1999-2014 OPEN CASCADE SAS |
7fd59977 |
5 | -- |
973c2be1 |
6 | -- This file is part of Open CASCADE Technology software library. |
7fd59977 |
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. |
7fd59977 |
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 PlaneSurface from IGESSolid inherits IGESEntity |
18 | |
19 | ---Purpose: defines PlaneSurface, Type <190> Form Number <0,1> |
20 | -- in package IGESSolid |
21 | -- A plane surface entity is defined by a point on the |
22 | -- surface and a normal to it. |
23 | |
24 | uses |
25 | |
26 | Point from IGESGeom, |
27 | Direction from IGESGeom |
28 | |
29 | is |
30 | |
6e33d3ce |
31 | Create returns PlaneSurface; |
7fd59977 |
32 | |
33 | -- Specific Methods pertaining to the class |
34 | |
35 | Init (me : mutable; |
36 | aLocation : Point; |
37 | aNormal : Direction; |
38 | refdir : Direction); |
39 | ---Purpose : This method is used to set the fields of the class |
40 | -- PlaneSurface |
41 | -- - aLocation : the point on the surface |
42 | -- - aNormal : the surface normal direction |
43 | -- - refdir : the reference direction (default NULL) for |
44 | -- unparameterised curves |
45 | |
46 | LocationPoint(me) returns Point; |
47 | ---Purpose : returns the point on the surface |
48 | |
49 | Normal(me) returns Direction; |
50 | ---Purpose : returns the normal to the surface |
51 | |
52 | ReferenceDir(me) returns Direction; |
53 | ---Purpose : returns the reference direction (for parameterised curve) |
54 | -- returns NULL for unparameterised curve |
55 | |
56 | IsParametrised(me) returns Boolean; |
57 | ---Purpose : returns True if parameterised, else False |
58 | |
59 | fields |
60 | |
61 | -- |
62 | -- Class : IGESSolid_PlaneSurface |
63 | -- |
64 | -- Purpose : Declaration of variables specific to the definition |
65 | -- of the Class PlaneSurface. |
66 | -- |
67 | -- Reminder : A PlaneSurface instance is defined by : |
68 | -- A plane surface entity is defined by a point(Location) on the |
69 | -- surface and a normal(Normal) to it. In case of parameterised |
70 | -- surface a reference direction (RefDir) is also given. |
71 | -- |
72 | |
73 | theLocationPoint : Point; |
74 | -- the point on the surface |
75 | |
76 | theNormal : Direction; |
77 | -- the normal to the surface |
78 | |
79 | theRefDir : Direction; |
80 | -- the reference direction of the surface |
81 | |
82 | end PlaneSurface; |