// Maps edges to the index of the new vertex added on that edge. The keys are the indices of the two vertices defining the edge and must be in the order uv, vw or uw.
// Maps edges to the index of the new vertex added on that edge. The keys are the indices of the two vertices defining the edge and must be in the order uv, vw or uw.
QMap<Edge,unsignedint>edge_indices;
QMap<Edge,unsignedint>edge_indices;
QMap<Triangle,bool>irregular_triangles;
QVectorIterator<Triangle>it(triangles);
while(it.hasNext()){
irregular_triangles.insert(it.next(),true);
}
// Regular neighbors of irregular triangles
// We have to generate edge vertices without putting them in the index buffer for rendering patches.