Panda3D
 All Classes Functions Variables Enumerations
xFileFace.h
1 // Filename: xFileFace.h
2 // Created by: drose (19Jun01)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef XFILEFACE_H
16 #define XFILEFACE_H
17 
18 #include "pandatoolbase.h"
19 #include "pvector.h"
20 
21 class XFileMesh;
22 class EggPolygon;
23 
24 ////////////////////////////////////////////////////////////////////
25 // Class : XFileFace
26 // Description : This represents a single face of an XFileMesh.
27 ////////////////////////////////////////////////////////////////////
28 class XFileFace {
29 public:
30  XFileFace();
31  void set_from_egg(XFileMesh *mesh, EggPolygon *egg_poly);
32 
33  class Vertex {
34  public:
35  int _vertex_index;
36  int _normal_index;
37  };
38  typedef pvector<Vertex> Vertices;
39  Vertices _vertices;
40 
41  int _material_index;
42 };
43 
44 #endif
45 
This is a collection of polygons; i.e.
Definition: xFileMesh.h:45
void set_from_egg(XFileMesh *mesh, EggPolygon *egg_poly)
Sets the structure up from the indicated egg data.
Definition: xFileFace.cxx:35
A single polygon.
Definition: eggPolygon.h:26
This represents a single face of an XFileMesh.
Definition: xFileFace.h:28