mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-22 20:21:38 +00:00
got case 5.1 sorted out and in the process of sorting out 5.3 (just need to
decide on the best way to translate the information).
This commit is contained in:
parent
588082a570
commit
a7ed89bdd2
1 changed files with 7 additions and 4 deletions
|
@ -425,15 +425,18 @@ process_corners (struct box_def *box)
|
|||
find_cube_vertex (visit[i].face, visit[(i + 1) % 5].face, visit[(i + 2) % 5].face, v);
|
||||
insert_cube_vertexen (box, visit[i], 1, v);
|
||||
insert_cube_vertexen (box, visit[(i + 1) % 5], 1, v);
|
||||
insert_cube_vertexen (box, visit[(i + 2) % 5], 1, v);
|
||||
insert_cube_vertexen (box, visit[(i + 4) % 5], 1, v);
|
||||
|
||||
} else {
|
||||
// 3 vertexen
|
||||
unsigned int sel = (((abs (visit[2].face - visit[0].face) == 3) << 2)
|
||||
| ((abs (visit[3].face - visit[1].face) == 3) << 1)
|
||||
| ((abs (visit[5].face - visit[2].face) == 3) << 0));
|
||||
unsigned int sel = (((abs (visit[2].face - visit[0].face) == 3) << 4)
|
||||
| ((abs (visit[3].face - visit[1].face) == 3) << 3)
|
||||
| ((abs (visit[4].face - visit[2].face) == 3) << 2)
|
||||
| ((abs (visit[0].face - visit[3].face) == 3) << 1)
|
||||
| ((abs (visit[1].face - visit[4].face) == 3) << 0));
|
||||
vec3_t v[3];
|
||||
center = ((sel * 3) - 6) % 5;
|
||||
//printf ("%02o %d %d %d %d %d %d\n", sel, center, visit[0].face, visit[1].face, visit[2].face, visit[3].face, visit[4].face);
|
||||
for (i = 0; i < 3; i++)
|
||||
find_cube_vertex (visit[center].face, visit[(center + 1 + i) % 5].face, visit[(center + 2 + i) % 5].face, v[i]);
|
||||
insert_cube_vertexen (box, visit[center], 3, v[0], v[1], v[2]);
|
||||
|
|
Loading…
Reference in a new issue