Expand description
Icosphere mesh generation
Functions§
- bet2_
icosa - FSL-BET2’s
make_mesh_from_icosa(n, m)(Bostrix/FSL-BET2 d5acd7f,meshclass/mesh.cpp): its icosahedron (vertex coordinatestau = 0.8506508084,one = 0.5257311121, in its orientation and order), every triangle’s last two vertices swapped, thenn − 1passes ofMesh::retessellate(each triangle(v0, v1, v2)split at its edge midpointsp0 = (v1+v2)/2,p1 = (v0+v2)/2,p2 = (v0+v1)/2into(p2, p0, p1),(p1, v0, p2),(p0, v2, p1),(p2, v1, p0), a midpoint shared with an earlier triangle reused) with every point scaled back onto the unit sphere by1/normafter each pass.n = 5(bet2’s) gives 2562 vertices.