C++ Collapse Edge Function Implementation: Optimizing Mesh Geometry
{"title":"void Collapse(Vertex *u,Vertex *v){\n\t// Collapse the edge uv by moving vertex u onto v\n\t// Actually remove tris on uv, then update tris that\n\t// have u to have v, and then remove u.\n\tif(!v) {\n\t\t// u is a vertex all by itself so just delete it\n\t\tdelete u;\n\t\treturn;\n\t}\n\tstd::vector<Vertex *>tmp;\n\t// make tmp a Array of all the neighbors of u\n\tfor (unsigned int i = 0; i
原文地址: https://www.cveoy.top/t/topic/pzyL 著作权归作者所有。请勿转载和采集!