Commit c9a501c6 by Philipp Adolf

Add sharp_edges to Tables

parent dcaf154b
...@@ -120,7 +120,7 @@ void Subdivision::subdivide(Mesh *mesh, int level) { ...@@ -120,7 +120,7 @@ void Subdivision::subdivide(Mesh *mesh, int level) {
getPatchIndexBuffer(regular, neighbors, patches); getPatchIndexBuffer(regular, neighbors, patches);
qCDebug(log_subdiv) << "patches" << patches.length(); qCDebug(log_subdiv) << "patches" << patches.length();
current_mesh->update(result.vb_handle, result.vertex_buffer, result.vertex_buffer_irregular, irregular_ib, input.sharp_edges, patches, tables.extra_triangles); current_mesh->update(result.vb_handle, result.vertex_buffer, result.vertex_buffer_irregular, irregular_ib, tables.sharp_edges, patches, tables.extra_triangles);
qCDebug(log_timing) << "subdivide done:" << formatTimeMeasurement(timer.elapsed()); qCDebug(log_timing) << "subdivide done:" << formatTimeMeasurement(timer.elapsed());
} }
......
...@@ -31,6 +31,7 @@ private: ...@@ -31,6 +31,7 @@ private:
struct Tables struct Tables
{ {
QVector<GLuint> edge_indices; QVector<GLuint> edge_indices;
QMap<Edge,unsigned int> sharp_edges;
QVector<GLuint> vertex_indices; QVector<GLuint> vertex_indices;
QVector<GLuint> vertex_offsets; QVector<GLuint> vertex_offsets;
QVector<GLuint> index_buffer; QVector<GLuint> index_buffer;
......
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