1 -- Created on: 1995-10-24
2 -- Created by: Mister rmi
3 -- Copyright (c) 1995-1999 Matra Datavision
4 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
6 -- This file is part of Open CASCADE Technology software library.
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
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.
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
17 class Triangulation from PPoly inherits Persistent from Standard
19 ---Purpose: This class represents a 3d polyhedral triangulation.
23 -- * A Deflection : This is the distance between the
24 -- triangulation and the "ideal" surface.
26 -- * An Array1 of 3d nodes values : Contains the
27 -- Points for the 3d nodes. Two different nodes may
28 -- have the same 3d point if they are differents in
31 -- * An Array1 of 2d nodes values : Contains the UV
32 -- coordinates for the nodes in the surface
33 -- parametric space. This is optionnal.
35 -- * The Array of triangles, each triangle is a
36 -- triplet of node indices. A triangle is oriented
37 -- and the whole triangulation must have a coherent
40 -- This is a Transient class.
42 HArray1OfPnt2d from PColgp,
43 HArray1OfPnt from PColgp,
44 HArray1OfTriangle from PPoly
48 Create(Defl: Real from Standard;
49 Nodes: HArray1OfPnt from PColgp;
50 Triangles: HArray1OfTriangle from PPoly)
51 returns Triangulation from PPoly;
52 ---Purpose: Defaults with allocation of Nodes and Triangles.
54 Create(Defl: Real from Standard;
55 Nodes: HArray1OfPnt from PColgp;
56 UVNodes: HArray1OfPnt2d from PColgp;
57 Triangles: HArray1OfTriangle from PPoly)
58 returns Triangulation from PPoly;
59 ---Purpose: Defaults with allocation of Nodes and Triangles.
61 Deflection(me) returns Real;
63 Deflection(me : mutable; D : Real);
65 NbNodes(me) returns Integer;
66 ---Purpose: Null if the nodes are not yet defined.
68 NbTriangles(me) returns Integer;
69 ---Purpose: Null if the Triangles are not yet defined.
71 HasUVNodes(me) returns Boolean;
73 Nodes(me) returns HArray1OfPnt from PColgp;
74 ---Purpose: Const reference on the 3d nodes values.
76 UVNodes(me) returns HArray1OfPnt2d from PColgp;
77 ---Purpose: Const reference on the 2d nodes values.
79 Triangles(me) returns HArray1OfTriangle from PPoly;
80 ---Purpose: Const reference on the triangles.
85 myNodes : HArray1OfPnt from PColgp;
86 myUVNodes : HArray1OfPnt2d from PColgp;
87 myTriangles : HArray1OfTriangle from PPoly;