b311480e |
1 | -- Created on: 1992-05-27 |
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 | |
24 | |
25 | class TVertex from BRep inherits TVertex from TopoDS |
26 | |
27 | ---Purpose: The TVertex from BRep inherits from the TVertex |
28 | -- from TopoDS. It contains the geometric data. |
29 | -- |
30 | -- The TVertex contains a 3d point and a tolerance. |
31 | -- |
32 | uses |
33 | Pnt from gp, |
34 | TShape from TopoDS, |
35 | ListOfPointRepresentation from BRep |
36 | |
37 | is |
38 | Create returns mutable TVertex from BRep; |
39 | |
40 | Tolerance(me) returns Real |
41 | ---C++: inline |
42 | is static; |
43 | |
44 | Tolerance(me : mutable; T : Real) |
45 | ---C++: inline |
46 | is static; |
47 | |
48 | UpdateTolerance(me : mutable; T : Real) |
49 | ---Purpose: Sets the tolerance to the max of <T> and the |
50 | -- current tolerance. |
51 | -- |
52 | ---C++: inline |
53 | is static; |
54 | |
55 | Pnt(me) returns Pnt from gp |
56 | ---C++: inline |
57 | ---C++: return const & |
58 | is static; |
59 | |
60 | Pnt(me : mutable; P : Pnt from gp) |
61 | ---C++: inline |
62 | is static; |
63 | |
64 | Points(me) returns ListOfPointRepresentation from BRep |
65 | ---C++: inline |
66 | ---C++: return const & |
67 | is static; |
68 | |
69 | ChangePoints(me : mutable) returns ListOfPointRepresentation from BRep |
70 | ---C++: inline |
71 | ---C++: return & |
72 | is static; |
73 | |
74 | EmptyCopy(me) returns mutable TShape from TopoDS; |
75 | ---Purpose: Returns a copy of the TShape with no sub-shapes. |
76 | |
77 | fields |
78 | |
79 | myPnt : Pnt from gp; |
80 | myTolerance : Real; |
81 | myPoints : ListOfPointRepresentation from BRep; |
82 | |
83 | end TVertex; |