Commit a7ab78ce by Philipp Adolf

Add comment for extractPatches

parent 9f9fe8d8
......@@ -318,6 +318,11 @@ Subdivision::Tables Subdivision::precomputeTables(Input input) {
return tables;
}
/*
* TODO: test code, use it
*
* Would probably be a good idea to store both regular and irregular patches.
*/
void Subdivision::extractPatches(QVector<unsigned int> index_buffer, QVector<Vertex> vertex_buffer, QVector<Subdivision::Patch> &patches){
patches.clear();
......@@ -345,10 +350,7 @@ void Subdivision::extractPatches(QVector<unsigned int> index_buffer, QVector<Ver
if (countx != 5 || county != 5 || countz != 5){
//triangle is irregular
}
}
}
Subdivision::Result Subdivision::runShader(Input input, Tables &tables) {
......
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