Panda3D
xFileFace.h
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file xFileFace.h
10  * @author drose
11  * @date 2001-06-19
12  */
13 
14 #ifndef XFILEFACE_H
15 #define XFILEFACE_H
16 
17 #include "pandatoolbase.h"
18 #include "pvector.h"
19 
20 class XFileMesh;
21 class EggPolygon;
22 
23 /**
24  * This represents a single face of an XFileMesh.
25  */
26 class XFileFace {
27 public:
28  XFileFace();
29  void set_from_egg(XFileMesh *mesh, EggPolygon *egg_poly);
30 
31  class Vertex {
32  public:
33  int _vertex_index;
34  int _normal_index;
35  };
36  typedef pvector<Vertex> Vertices;
37  Vertices _vertices;
38 
39  int _material_index;
40 };
41 
42 #endif
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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:30
A single polygon.
Definition: eggPolygon.h:24
This represents a single face of an XFileMesh.
Definition: xFileFace.h:26
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.