From: curt Date: Wed, 27 Feb 2002 23:08:45 +0000 (+0000) Subject: Added support for points objects. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cc01f99acb913c6f849f384eb6f69834975fdb63;p=simgear.git Added support for points objects. --- diff --git a/simgear/io/decode_binobj.cxx b/simgear/io/decode_binobj.cxx index 2cae546d..b6cb24e5 100644 --- a/simgear/io/decode_binobj.cxx +++ b/simgear/io/decode_binobj.cxx @@ -65,6 +65,20 @@ int main( int argc, char **argv ) { int_list vertex_index; int_list tex_index; + // generate points + string_list pt_materials = obj.get_pt_materials(); + group_list pts_v = obj.get_pts_v(); + for ( i = 0; i < (int)pts_v.size(); ++i ) { + material = pt_materials[i]; + vertex_index = pts_v[i]; + cout << "# usemtl " << material << endl; + cout << "pt "; + for ( j = 0; j < (int)vertex_index.size(); ++j ) { + cout << vertex_index[j] << " "; + } + cout << endl; + } + // generate triangles string_list tri_materials = obj.get_tri_materials(); group_list tris_v = obj.get_tris_v();