Commit 742aa15b by Philipp Adolf

Remove unused variables

parent 7c0f191a
......@@ -128,16 +128,6 @@ Subdivision::Tables Subdivision::precomputeTables(Input input) {
//schaue alle dreiecke an
Triangle triangle = triangles[i];
Vertex x, y, z;
unsigned int x_i = triangle.u_idx();
unsigned int y_i = triangle.v_idx();
unsigned int z_i = triangle.w_idx();
//get vertices x,y,z from vertex buffer
x = triangle.u();
y = triangle.v();
z = triangle.w();
QVector<unsigned int> edge_indices_buffer;//push all edge indices into this, then check if enough edge indices were found. if yes, copy to Tables and add to new index buffer.
/*
......@@ -188,15 +178,15 @@ Subdivision::Tables Subdivision::precomputeTables(Input input) {
tables.edge_indices.push_back(wu.c);
//add indices to new index buffer
tables.index_buffer.push_back(x_i);
tables.index_buffer.push_back(triangle.u_idx());
tables.index_buffer.push_back(nib_offset);
tables.index_buffer.push_back(nib_offset + 2);
tables.index_buffer.push_back(y_i);
tables.index_buffer.push_back(triangle.v_idx());
tables.index_buffer.push_back(nib_offset + 1);
tables.index_buffer.push_back(nib_offset);
tables.index_buffer.push_back(z_i);
tables.index_buffer.push_back(triangle.w_idx());
tables.index_buffer.push_back(nib_offset + 2);
tables.index_buffer.push_back(nib_offset + 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment