Skip to content

Commit

Permalink
Use proper mesh coordinate type in Tessel::add_to_mesh
Browse files Browse the repository at this point in the history
Meshes have their own coordinate type (Mesh::MPos), which may be
different than the default coordinate type.
  • Loading branch information
snogglethorpe committed Feb 2, 2012
1 parent 76151df commit 403bdc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tessel.cc
@@ -1,6 +1,6 @@
// tessel.cc -- Surface tessellation
//
// Copyright (C) 2005, 2007, 2008 Miles Bader <miles@gnu.org>
// Copyright (C) 2005, 2007, 2008, 2012 Miles Bader <miles@gnu.org>
//
// This source code is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License as
Expand Down Expand Up @@ -108,7 +108,7 @@ Tessel::add_to_mesh (Mesh *mesh)

for (LinkedList<Vertex>::iterator vi = vertices.begin();
vi != vertices.end(); vi++)
mesh_verts.push_back (vi->pos);
mesh_verts.push_back (Mesh::MPos (vi->pos));

Mesh::vert_index_t base_vert = mesh->add_vertices (mesh_verts);

Expand Down

0 comments on commit 403bdc1

Please sign in to comment.