Conversation
so it's simplifying the indices, getting rid of unused vertices but... somehow I override the positions with the normals. as soon as I fixed this, I will post a new screenshot. hopefully it works!
1
0
0
blobcattableflip this didn't work at all, what the heck
0
0
1
@snacks it's the first version that actually renders. but yes, it's trash
1
0
0
@methyltheobromine what was that before it got simplified?
1
0
0
@snacks I isolated the passage responsible:

//remove slack
faces.erase(std::remove_if(faces.begin(),
faces.end(),
[](Face& face){return face.id==0;}),
faces.end());
for(Face& face : faces){
refcounters[face.a->id]++;
refcounters[face.b->id]++;
refcounters[face.b->id]++;
}
vertices.erase(std::remove_if(vertices.begin(),
vertices.end(),
[](Vertex& vertex){
return refcounters[vertex.id]==0;
}),
vertices.end());

even if NO visually unintelligible vertices are found, if I comment out the detection part, the "remove slack" section breaks the mesh. any idea?
1
0
0
@snacks I just found the typo HOLY FUCK JESUS MARIA GONZALES WHY AM I SO CLUMSY
0
0
1