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
41 HArray1OfPnt2d from PColgp,
42 HArray1OfPnt from PColgp,
43 HArray1OfTriangle from PPoly
47 Create(Defl: Real from Standard;
48 Nodes: HArray1OfPnt from PColgp;
49 Triangles: HArray1OfTriangle from PPoly)
50 returns Triangulation from PPoly;
51 ---Purpose: Defaults with allocation of Nodes and Triangles.
53 Create(Defl: Real from Standard;
54 Nodes: HArray1OfPnt from PColgp;
55 UVNodes: HArray1OfPnt2d from PColgp;
56 Triangles: HArray1OfTriangle from PPoly)
57 returns Triangulation from PPoly;
58 ---Purpose: Defaults with allocation of Nodes and Triangles.
60 Deflection(me) returns Real;
62 Deflection(me : mutable; D : Real);
64 NbNodes(me) returns Integer;
65 ---Purpose: Null if the nodes are not yet defined.
67 NbTriangles(me) returns Integer;
68 ---Purpose: Null if the Triangles are not yet defined.
70 HasUVNodes(me) returns Boolean;
72 Nodes(me) returns HArray1OfPnt from PColgp;
73 ---Purpose: Const reference on the 3d nodes values.
75 UVNodes(me) returns HArray1OfPnt2d from PColgp;
76 ---Purpose: Const reference on the 2d nodes values.
78 Triangles(me) returns HArray1OfTriangle from PPoly;
79 ---Purpose: Const reference on the triangles.
84 myNodes : HArray1OfPnt from PColgp;
85 myUVNodes : HArray1OfPnt2d from PColgp;
86 myTriangles : HArray1OfTriangle from PPoly;