3 #include "obj_reader.h"
6 #include <cgv/math/fvec.h>
8 #include <cgv/media/lib_begin.h>
30 face_info(
unsigned _nr = 0,
unsigned _vi0 = 0,
int _ti0 = -1,
int _ni0 = -1,
unsigned gi=-1,
unsigned mi=-1);
54 std::vector<v3d_type> vertices;
55 std::vector<v3d_type> normals;
56 std::vector<v2d_type> texcoords;
57 std::vector<color_type> colors;
59 std::vector<unsigned> vertex_indices;
60 std::vector<unsigned> normal_indices;
61 std::vector<unsigned> texcoord_indices;
63 std::vector<face_info> faces;
64 std::vector<group_info> groups;
65 std::vector<cgv::media::illum::obj_material> materials;
69 void process_vertex(
const v3d_type& p);
72 void process_texcoord(
const v2d_type& t);
74 void process_normal(
const v3d_type& n);
76 void process_color(
const color_type& c);
78 void process_face(
unsigned vcount,
int *vertices,
79 int *texcoords = 0,
int *normals=0);
81 void process_group(
const std::string& name,
const std::string& parameters);
87 bool read_obj(
const std::string& file_name);
89 bool read_obj_bin(
const std::string& file_name);
91 bool write_obj_bin(
const std::string& file_name)
const;
93 void show_stats()
const;
107 #include <cgv/config/lib_end.h>
the cgv namespace
Definition: vr_calib.cxx:9