0033661: Data Exchange, Step Import - Tessellated GDTs are not imported
[occt.git] / src / Graphic3d / Graphic3d_TypeOfPrimitiveArray.hxx
1 // Created on: 1993-03-31
2 // Created by: NW,JPB,CAL
3 // Copyright (c) 1993-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
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.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 #ifndef _Graphic3d_TypeOfPrimitiveArray_HeaderFile
18 #define _Graphic3d_TypeOfPrimitiveArray_HeaderFile
19
20 //! The type of primitive array in a group in a structure.
21 enum Graphic3d_TypeOfPrimitiveArray
22 {
23   Graphic3d_TOPA_UNDEFINED,                //!< undefined primitive type
24   // main rendering types
25   Graphic3d_TOPA_POINTS,                   //!< individual points
26   Graphic3d_TOPA_SEGMENTS,                 //!< segments array - each 2 vertexes define 1 segment
27   Graphic3d_TOPA_POLYLINES,                //!< line strip - each new vertex in array defines segment with previous one
28   Graphic3d_TOPA_TRIANGLES,                //!< triangle array - each 3 vertexes define 1 triangle
29   Graphic3d_TOPA_TRIANGLESTRIPS,           //!< triangle strip - each new vertex in array defines triangle with 2 previous vertexes
30   Graphic3d_TOPA_TRIANGLEFANS,             //!< triangle fan - each new vertex in array define triangle with the previous vertex and the very first vertex (fan center)
31   // rendering type with auxiliary adjacent info (can be accessed only within Geometry shader)
32   Graphic3d_TOPA_LINES_ADJACENCY,          //!< ADVANCED - same as Graphic3d_TOPA_SEGMENTS, but each pair of vertexes defining 1 segment
33                                            //!  is preceded by 1 extra vertex and followed by 1 extra vertex which are not actually rendered
34   Graphic3d_TOPA_LINE_STRIP_ADJACENCY,     //!< ADVANCED - same as Graphic3d_TOPA_POLYLINES, but each sequence of vertexes defining 1 polyline
35                                            //!  is preceded by 1 extra vertex and followed by 1 extra vertex which are not actually rendered
36   Graphic3d_TOPA_TRIANGLES_ADJACENCY,      //!< ADVANCED - same as Graphic3d_TOPA_TRIANGLES, but each vertex defining of triangle
37                                            //!  is followed by 1 extra adjacent vertex which is not actually rendered
38   Graphic3d_TOPA_TRIANGLE_STRIP_ADJACENCY, //!< ADVANCED - same as Graphic3d_TOPA_TRIANGLESTRIPS, but with extra adjacent vertexes
39   // deprecated types, unsupported by mobile hardware
40   Graphic3d_TOPA_QUADRANGLES,              //!< DEPRECATED - triangle array should be used instead;
41                                            //!  array of quads - each 4 vertexes define single quad
42   Graphic3d_TOPA_QUADRANGLESTRIPS,         //!< DEPRECATED - triangle array should be used instead;
43                                            //!  quad strip - each 2 new vertexes define a quad shared 2 more vertexes of previous quad
44   Graphic3d_TOPA_POLYGONS                  //!< DEPRECATED - triangle array should be used instead;
45                                            //!  array defines a polygon
46 };
47
48 #endif // _Graphic3d_TypeOfPrimitiveArray_HeaderFile