// 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;
for(inti=0;i<triangles.length();i++){
for(inti=0;i<triangles.length();i++){
//schaue alle dreiecke an
//schaue alle dreiecke an
Triangletriangle=triangles[i];
Triangle*triangle=&triangles[i];
QVector<unsignedint>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.
QVector<unsignedint>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.