Changeset 1621 for trunk/src/easymesh/easymesh.cpp
- Timestamp:
- Jul 10, 2012, 2:40:58 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/easymesh/easymesh.cpp
r1619 r1621 368 368 369 369 /* Fill in the icosahedron vertices, rotating them so that there 370 * is a vertex at [0 0 1] and [0 0 -1] after normalisation. */370 * is a vertex at [0 1 0] and [0 -1 0] after normalisation. */ 371 371 float phi = 0.5f + 0.5f * sqrt(5.f); 372 372 mat3 mat = mat3::rotate(asin(1.f / sqrt(2.f + phi)) * (180.f / M_PI), 373 vec3( 1.f, 0.f, 0.f));373 vec3(0.f, 0.f, 1.f)); 374 374 for (int i = 0; i < 4; i++) 375 375 { … … 419 419 { 420 420 for (int k = 0; k < 4; k++) 421 p[k]. z += (p[k].z> 0.f) ? 0.5f * h : -0.5f * h;421 p[k].y += (p[k].y > 0.f) ? 0.5f * h : -0.5f * h; 422 422 } 423 423
Note: See TracChangeset
for help on using the changeset viewer.