0024855: Revision of parameters of standard materials
[occt.git] / src / Graphic3d / Graphic3d_ArrayOfQuadrangles.cdl
CommitLineData
b311480e 1-- Created on: 2001-01-04
973c2be1 2-- Copyright (c) 2001-2014 OPEN CASCADE SAS
7fd59977 3--
973c2be1 4-- This file is part of Open CASCADE Technology software library.
b311480e 5--
d5f74e42 6-- This library is free software; you can redistribute it and/or modify it under
7-- the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 8-- by the Free Software Foundation, with special exception defined in the file
9-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10-- distribution for complete text of the license and disclaimer of any warranty.
b311480e 11--
973c2be1 12-- Alternatively, this file may be used under the terms of Open CASCADE
13-- commercial license or contractual agreement.
7fd59977 14
15class ArrayOfQuadrangles from Graphic3d inherits ArrayOfPrimitives from Graphic3d
16
17uses
18 Color from Quantity,
19 Pnt from gp,
20 Pnt2d from gp,
21 Dir from gp
22
23raises
24 OutOfRange from Standard
25
26is
27
28 -- constructor
29 Create (
30 maxVertexs: Integer from Standard;
31 maxEdges: Integer from Standard = 0;
32 hasVNormals: Boolean from Standard = Standard_False;
33 hasVColors: Boolean from Standard = Standard_False;
871fa103 34 hasTexels: Boolean from Standard = Standard_False)
7fd59977 35 returns mutable ArrayOfQuadrangles from Graphic3d;
36 ---Purpose: Creates an array of quadrangles,
37 -- a quadrangle can be filled as:
38 -- 1) creating a set of quadrangles defined with his vertexs.
39 -- i.e:
40 -- myArray = Graphic3d_ArrayOfQuadrangles(8)
41 -- myArray->AddVertex(x1,y1,z1)
42 -- ....
43 -- myArray->AddVertex(x8,y8,z8)
44 -- 3) creating a set of indexed quadrangles defined with his vertex
45 -- ans edges.
46 -- i.e:
47 -- myArray = Graphic3d_ArrayOfQuadrangles(6,8)
48 -- myArray->AddVertex(x1,y1,z1)
49 -- ....
50 -- myArray->AddVertex(x6,y6,z6)
51 -- myArray->AddEdge(1)
52 -- myArray->AddEdge(2)
53 -- myArray->AddEdge(3)
54 -- myArray->AddEdge(4)
55 -- myArray->AddEdge(3)
56 -- myArray->AddEdge(4)
57 -- myArray->AddEdge(5)
58 -- myArray->AddEdge(6)
59 --
60 -- <maxVertexs> defined the maximun allowed vertex number in the array.
61 -- <maxEdges> defined the maximun allowed edge number in the array.
62 -- Warning:
63 -- When <hasVNormals> is TRUE , you must use one of
64 -- AddVertex(Point,Normal)
65 -- or AddVertex(Point,Normal,Color)
66 -- or AddVertex(Point,Normal,Texel) methods.
67 -- When <hasVColors> is TRUE , you must use one of
68 -- AddVertex(Point,Color)
69 -- or AddVertex(Point,Normal,Color) methods.
70 -- When <hasTexels> is TRUE , you must use one of
71 -- AddVertex(Point,Texel)
72 -- or AddVertex(Point,Normal,Texel) methods.
7fd59977 73 -- Warning:
74 -- the user is responsible about the orientation of the quadrangle
75 -- depending of the order of the created vertex or edges and this
76 -- orientation must be coherent with the vertex normal optionnaly
77 -- given at each vertex (See the Orientate() methods).
78
79end;