Test for 0022778: Bug in BRepMesh
[occt.git] / src / Graphic3d / Graphic3d_VertexN.cdl
CommitLineData
b311480e 1-- Created by: NW,JPB,CAL
2-- Copyright (c) 1991-1999 Matra Datavision
3-- Copyright (c) 1999-2012 OPEN CASCADE SAS
7fd59977 4--
b311480e 5-- The content of this file is subject to the Open CASCADE Technology Public
6-- License Version 6.5 (the "License"). You may not use the content of this file
7-- except in compliance with the License. Please obtain a copy of the License
8-- at http://www.opencascade.org and read it completely before using this file.
7fd59977 9--
b311480e 10-- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
11-- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
7fd59977 12--
b311480e 13-- The Original Code and all software distributed under the License is
14-- distributed on an "AS IS" basis, without warranty of any kind, and the
15-- Initial Developer hereby disclaims all such warranties, including without
16-- limitation, any warranties of merchantability, fitness for a particular
17-- purpose or non-infringement. Please see the License for the specific terms
18-- and conditions governing the rights and limitations under the License.
19
20-- Modified: 03-02-98 : FMN ; Add Flag Normal
7fd59977 21
22class VertexN from Graphic3d inherits Vertex from Graphic3d
23
24 ---Version:
25
26 ---Purpose: This class allows the creation and update of
27 -- a vertex with a 3D normal.
28
29 ---Keywords: Vertex, Normal, Coordinate, Point
30
31 ---Warning:
32 ---References:
33
34uses
35
36 Vector from Graphic3d
37
38is
39
40 Create
41 returns VertexN from Graphic3d;
42 ---Level: Public
43 ---Purpose: Creates a point with 0.0, 0.0, 0.0 coordinates
44 -- for which the normal is 0.0, 0.0, 1.0.
45
46 Create ( AX, AY, AZ : Real from Standard;
47 ANX, ANY, ANZ : Real from Standard;
48 FlagNormalise : Boolean from Standard = Standard_True )
49 returns VertexN from Graphic3d;
50 ---Level: Public
51 ---Purpose: Creates a point with coordinates <AX>, <AY>, <AZ> and
52 -- for which the normal is <ANX>, <ANY>, <ANZ>.
53 -- If <FlagNormalise> is True the normal is already normalised
54 -- Else the normal is not normalised, the graphic do it.
55
56 Create ( APoint : Vertex from Graphic3d;
57 AVector : Vector from Graphic3d;
58 FlagNormalise : Boolean from Standard = Standard_True )
59 returns VertexN from Graphic3d;
60 ---Level: Public
61 ---Purpose: Creates a point in <APoint> for which the normal is <AVector>.
62 -- If <FlagNormalise> is True the normal is already normalised
63 -- Else the normal is not normalised, the graphic do it.
64
65 ---------------------------------------------------
66 -- Category: Methods to modify the class definition
67 ---------------------------------------------------
68
69 SetNormal ( me : in out;
70 NXnew, NYnew, NZnew : Real from Standard;
71 FlagNormalise : Boolean from Standard = Standard_True )
72 is static;
73 ---Level: Public
74 ---Purpose: Modifies the normal to the point <me>.
75 -- If <FlagNormalise> is True the normal is already normalised
76 -- Else the normal is not normalised, the graphic do it.
77 ---Category: Methods to modify the class definition
78
79 ----------------------------
80 -- Category: Inquire methods
81 ----------------------------
82
83 Normal ( me;
84 ANX, ANY, ANZ : out Real from Standard )
85 is static;
86 ---Level: Public
87 ---Purpose: Returns the normal to the point <me>.
88 ---Category: Inquire methods
89
90--\f
91
92fields
93
94--
95-- Class : Graphic3d_VertexN
96--
97-- Purpose : Declaration of variables specific to points.
98--
99-- Reminder : A point is defined by its coordinates and its normal.
100
101 -- the normale to the point
102 MyDX : ShortReal from Standard;
103 MyDY : ShortReal from Standard;
104 MyDZ : ShortReal from Standard;
105
106end VertexN;