0024624: Lost word in license statement in source files
[occt.git] / src / StlMesh / StlMesh_MeshExplorer.cdl
CommitLineData
b311480e 1-- Created on: 1995-09-21
2-- Created by: Philippe GIRODENGO
3-- Copyright (c) 1995-1999 Matra Datavision
973c2be1 4-- Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5--
973c2be1 6-- This file is part of Open CASCADE Technology software library.
b311480e 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.
b311480e 13--
973c2be1 14-- Alternatively, this file may be used under the terms of Open CASCADE
15-- commercial license or contractual agreement.
7fd59977 16
17class MeshExplorer from StlMesh
18
19 ---Purpose: Provides facilities to explore the triangles of
20 -- each mesh domain.
21 --
22uses
23
24 Mesh from StlMesh,
25 SequenceOfMeshTriangle from StlMesh,
26 SequenceOfXYZ from TColgp
27
28raises
29
30 OutOfRange from Standard,
31 NoMoreObject from Standard,
32 NoSuchObject from Standard
33
34is
35
36 Create (M : Mesh) returns MeshExplorer;
37
38
39 Deflection (me) returns Real is static;
40 ---Purpose: Returns the mesh deflection of the current domain.
41
42 InitTriangle (me : in out; DomainIndex : Integer = 1)
43 ---Purpose: Initializes the exploration of the triangles of
44 -- the mesh domain of range <DomainIndex>.
45 raises OutOfRange
46 ---Purpose: Raised if <DomainIndex> is lower than 1 or greater
47 -- than the number of domains.
48 is static;
49
50
51 MoreTriangle (me) returns Boolean is static;
52 ---C++: inline
53
54
55 NextTriangle (me : in out)
56 raises NoMoreObject
57 ---Purpose: Raised if there is no more triangle in the current
58 -- domain.
59 is static;
60
61
62 TriangleVertices (me; X1, Y1, Z1, X2, Y2, Z2, X3, Y3, Z3 : in out Real)
63 raises NoSuchObject
64 ---Purpose: Raised if there is no more triangle in the current
65 -- domain.
66 is static;
67
68
69 TriangleOrientation (me; Xn, Yn, Zn : in out Real)
70 raises NoSuchObject
71 ---Purpose: Raised if there is no more triangle in the current
72 -- domain.
73 is static;
74
75
76
77fields
78
79 mesh : Mesh;
80 xn, yn, zn : Real;
81 v1, v2, v3 : Integer;
82 domainIndex : Integer;
83 nbTriangles : Integer;
84 triangleIndex : Integer;
85 trianglesVertex : SequenceOfXYZ;
86 trianglesdef : SequenceOfMeshTriangle;
87
88end MeshExplorer;
89
90
91
92
93
94
95