… | |
… | |
73 | } |
73 | } |
74 | for (i = 0; i < tmpn; i++) { |
74 | for (i = 0; i < tmpn; i++) { |
75 | double a, b, c; |
75 | double a, b, c; |
76 | match_number (a); |
76 | match_number (a); |
77 | if (verts.size () < a) |
77 | if (verts.size () < a) |
78 | throw txtprt_i_exception ("Vertix a out of range!"); |
78 | throw txtprt_i_exception ("Vertex a out of range!"); |
79 | match_space (); |
79 | match_space (); |
80 | match_number (b); |
80 | match_number (b); |
81 | if (verts.size () < b) |
81 | if (verts.size () < b) |
82 | throw txtprt_i_exception ("Vertix a out of range!"); |
82 | throw txtprt_i_exception ("Vertex b out of range!"); |
83 | match_space (); |
83 | match_space (); |
84 | match_number (c); |
84 | match_number (c); |
85 | if (verts.size () < c) |
85 | if (verts.size () < c) |
86 | throw txtprt_i_exception ("Vertix a out of range!"); |
86 | throw txtprt_i_exception ("Vertex c out of range!"); |
87 | match_nl (); |
87 | match_nl (); |
88 | entity_triangles *tri = new entity_triangles; |
88 | entity_triangles *tri = new entity_triangles; |
89 | tri->push_back (verts[(int)a]); |
89 | tri->push_back (verts[(int)a]); |
90 | tri->push_back (verts[(int)b]); |
90 | tri->push_back (verts[(int)b]); |
91 | tri->push_back (verts[(int)c]); |
91 | tri->push_back (verts[(int)c]); |