15 #ifndef EGGTOOBJCONVERTER_H 16 #define EGGTOOBJCONVERTER_H 18 #include "pandatoolbase.h" 20 #include "eggToSomethingConverter.h" 21 #include "eggVertexPool.h" 55 bool process(
const Filename &filename);
57 void collect_vertices(
EggNode *egg_node);
58 void write_faces(ostream &out,
EggNode *egg_node);
59 void write_group_reference(ostream &out,
EggNode *egg_node);
60 void get_group_name(
string &group_name,
EggGroupNode *egg_group);
63 int record_unique(UniqueVertices &unique,
const LVecBase4d &vec);
64 int record_unique(UniqueVertices &unique,
const LVecBase3d &vec);
65 int record_unique(UniqueVertices &unique,
const LVecBase2d &vec);
66 int record_unique(UniqueVertices &unique,
double pos);
68 void write_vertices(ostream &out,
const string &prefix,
int num_components,
69 const UniqueVertices &unique);
72 bool _triangulate_polygons;
74 UniqueVertices _unique_vert3, _unique_vert4, _unique_uv2, _unique_uv3, _unique_norm;
virtual bool supports_compressed() const
Returns true if this file type can transparently save compressed files (with a .pz extension)...
virtual string get_extension() const
Returns the common extension of the file type this converter supports.
This is the base class for all two-component vectors and points.
A base class for nodes in the hierarchy that are not leaf nodes.
virtual bool write_file(const Filename &filename)
Handles the conversion of the internal EggData to the target file format, written to the specified fi...
This is the base class for all three-component vectors and points.
virtual EggToSomethingConverter * make_copy()
Allocates and returns a new copy of the converter.
virtual string get_name() const
Returns the English name of the file type this converter supports.
This is a base class for a family of converter classes that manage a conversion from egg format to so...
The name of a file, such as a texture file or an Egg file.
Any one-, two-, three-, or four-component vertex, possibly with attributes such as a normal...
This is the base class for all three-component vectors and points.
A base class for things that may be directly added into the egg hierarchy.
Convert an obj file to egg data.