1 -- File: StlMesh_MeshExplorer.cdl
2 -- Created: Tue Sep 21 10:06:20 1995
3 -- Author: Philippe GIRODENGO
4 ---Copyright: Matra Datavision 1995
8 class MeshExplorer from StlMesh
10 ---Purpose: Provides facilities to explore the triangles of
16 SequenceOfMeshTriangle from StlMesh,
17 SequenceOfXYZ from TColgp
21 OutOfRange from Standard,
22 NoMoreObject from Standard,
23 NoSuchObject from Standard
27 Create (M : Mesh) returns MeshExplorer;
30 Deflection (me) returns Real is static;
31 ---Purpose: Returns the mesh deflection of the current domain.
33 InitTriangle (me : in out; DomainIndex : Integer = 1)
34 ---Purpose: Initializes the exploration of the triangles of
35 -- the mesh domain of range <DomainIndex>.
37 ---Purpose: Raised if <DomainIndex> is lower than 1 or greater
38 -- than the number of domains.
42 MoreTriangle (me) returns Boolean is static;
46 NextTriangle (me : in out)
48 ---Purpose: Raised if there is no more triangle in the current
53 TriangleVertices (me; X1, Y1, Z1, X2, Y2, Z2, X3, Y3, Z3 : in out Real)
55 ---Purpose: Raised if there is no more triangle in the current
60 TriangleOrientation (me; Xn, Yn, Zn : in out Real)
62 ---Purpose: Raised if there is no more triangle in the current
73 domainIndex : Integer;
74 nbTriangles : Integer;
75 triangleIndex : Integer;
76 trianglesVertex : SequenceOfXYZ;
77 trianglesdef : SequenceOfMeshTriangle;