I apologize first as I lost track of the previous posting for this topic.
I am wondering how do I calculate the genus of a mesh. For instance, if I got a box, just a plain-vanilla box, and if I use the following formula, I will get a genus of 6....
I believe it's wrong.
int genus = verts.size() + faces.size() - edges.size();
Blind_Block Genus: 6
When using this one:
int genus = (2 + (verts.size() + faces.size() - edges.size())) / 2;
I would get:
Blind_Block Genus: 4
↧