]> git.mxchange.org Git - simgear.git/commitdiff
Added support for points objects.
authorcurt <curt>
Wed, 27 Feb 2002 23:08:45 +0000 (23:08 +0000)
committercurt <curt>
Wed, 27 Feb 2002 23:08:45 +0000 (23:08 +0000)
simgear/io/decode_binobj.cxx

index 2cae546d5b926c07e0b0859dd9f46e45309e3495..b6cb24e59a67773c801424c72c6e125bad263c5a 100644 (file)
@@ -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();