33 EggPolygon::reverse_iterator vi;
34 for (vi = egg_poly->rbegin(); vi != egg_poly->rend(); ++vi) {
37 v._vertex_index = mesh->
add_vertex(egg_vertex, egg_poly);
38 v._normal_index = mesh->
add_normal(egg_vertex, egg_poly);
39 _vertices.push_back(v);
This is a collection of polygons; i.e.
int add_vertex(EggVertex *egg_vertex, EggPrimitive *egg_prim)
Creates a new XFileVertex, if one does not already exist for the indicated vertex,...
int add_material(EggPrimitive *egg_prim)
Creates a new XFileMaterial, if one does not already exist for the indicated material,...
int add_normal(EggVertex *egg_vertex, EggPrimitive *egg_prim)
Creates a new XFileNormal, if one does not already exist for the indicated normal,...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Any one-, two-, three-, or four-component vertex, possibly with attributes such as a normal.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void set_from_egg(XFileMesh *mesh, EggPolygon *egg_poly)
Sets the structure up from the indicated egg data.