mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
Make FindEdge easier to read.
This commit is contained in:
parent
fc0e0f4665
commit
f758cacc69
1 changed files with 2 additions and 18 deletions
|
@ -169,26 +169,10 @@ FindEdge (vec3_t p1, vec3_t p2, vec_t *t1, vec_t *t2)
|
||||||
h = HashVec (origin);
|
h = HashVec (origin);
|
||||||
|
|
||||||
for (w = wedge_hash[h]; w; w = w->next) {
|
for (w = wedge_hash[h]; w; w = w->next) {
|
||||||
temp = w->origin[0] - origin[0];
|
if (!_VectorCompare (w->origin, origin))
|
||||||
if (temp < -EQUAL_EPSILON || temp > EQUAL_EPSILON)
|
|
||||||
continue;
|
continue;
|
||||||
temp = w->origin[1] - origin[1];
|
if (!_VectorCompare (w->dir, dir))
|
||||||
if (temp < -EQUAL_EPSILON || temp > EQUAL_EPSILON)
|
|
||||||
continue;
|
continue;
|
||||||
temp = w->origin[2] - origin[2];
|
|
||||||
if (temp < -EQUAL_EPSILON || temp > EQUAL_EPSILON)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
temp = w->dir[0] - dir[0];
|
|
||||||
if (temp < -EQUAL_EPSILON || temp > EQUAL_EPSILON)
|
|
||||||
continue;
|
|
||||||
temp = w->dir[1] - dir[1];
|
|
||||||
if (temp < -EQUAL_EPSILON || temp > EQUAL_EPSILON)
|
|
||||||
continue;
|
|
||||||
temp = w->dir[2] - dir[2];
|
|
||||||
if (temp < -EQUAL_EPSILON || temp > EQUAL_EPSILON)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
return w;
|
return w;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue