Adding the beginnings of degenerate_winding2 and degenerate_winding3

regression tests for q3map2.


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@419 8a3a26a2-13c4-0310-b231-cf6edde360e5
This commit is contained in:
rambetter 2011-01-11 02:08:30 +00:00
parent a36b39a62b
commit 8b711d1f35
12 changed files with 59 additions and 0 deletions

View File

@ -0,0 +1,14 @@
DESCRIPTION OF PROBLEM:
=======================
The sample map contains a wedge brush. The tip (the sharp edge) of the wedge
is chopped off by 2 planes, leaving very narrow windings. Each of these 2
narrow windings is less than 0.1 units tall. However, the wedge has height
exactly equal to 1/8 unit at the point where it is chopped. Therefore,
the two narrow sides caused by the chops are expected to be degenerate and the
top face of the wedge is expected to be unaffected. This should leave a
"hole" in the narrow part of the wedge.
The hole isn't desirable but it's expected based on the logic in the code.
Still, if there is a hole in the brush, I consider this regression test to
be broken.

View File

@ -0,0 +1,14 @@
// entity 0
{
"classname" "worldspawn"
// brush 0
{
( 7 0 0 ) ( 7 0 1 ) ( 7 64 1 ) radiant_regression_tests/green 0 0 0 0.500000 0.500000 0 0 0
( 7 0 0 ) ( 7 64 0 ) ( -1 64 0 ) radiant_regression_tests/blue 0 0 0 0.500000 0.500000 0 0 0
( 7 0 1 ) ( 7 0 0 ) ( -1 0 0 ) radiant_regression_tests/green 0 0 0 0.500000 0.500000 0 0 0
( -1 64 0 ) ( 7 64 0 ) ( 7 64 1 ) radiant_regression_tests/green 0 0 0 0.500000 0.500000 0 0 0
( 7 0 1 ) ( -1 0 0 ) ( -1 64 0 ) radiant_regression_tests/blue 0 0 0 0.500000 0.500000 0 0 0
( -1 0 2 ) ( 0 0 0 ) ( 0 64 0 ) radiant_regression_tests/red 0 0 0 0.500000 0.500000 0 0 0
( 1 0 2 ) ( -7 0 -13 ) ( -7 64 -13 ) radiant_regression_tests/red 0 0 0 0.500000 0.500000 0 0 0
}
}

View File

@ -0,0 +1,18 @@
DESCRIPTION OF PROBLEM:
=======================
The sample map contains a wedge brush. The tip (the sharp edge) of the wedge
is chopped off by the YZ plane (side 5, or the last side, of the brush).
The height of the wedge where it is chopped is about 0.9. This makes it
barely smaller than DEGENERATE_EPSILON. So the face resulting from the chop
is probably degenerate, and that winding will be removed. I'm now wondering
what happens to the rest of the brush. 0.9 rounded to the nearest 1/8 unit
is 1/8, so the top face of the brush should get a slight raise, making the
"hole" even bigger. The sides will have degenerate edges near the chop, so
they will become triangles, creating open slivers in the sides.
Although this behavior is a tad nasty, it is expected based on the way the
code is written. I want to make sure nothing really nasty happens.
I consider this regression test to be broken if there is a "hole" in the brush,
and I consider this test to be very broken if something more drastic happens.

View File

@ -0,0 +1,13 @@
// entity 0
{
"classname" "worldspawn"
// brush 0
{
( 10 0 0 ) ( 10 0 1 ) ( 10 64 1 ) radiant_regression_tests/green 0 0 0 0.500000 0.500000 0 0 0
( 10 0 0 ) ( 10 64 0 ) ( -1 64 0 ) radiant_regression_tests/blue 0 0 0 0.500000 0.500000 0 0 0
( 10 0 1 ) ( 10 0 0 ) ( -1 0 0 ) radiant_regression_tests/green 0 0 0 0.500000 0.500000 0 0 0
( -1 64 0 ) ( 10 64 0 ) ( 10 64 1 ) radiant_regression_tests/green 0 0 0 0.500000 0.500000 0 0 0
( 10 0 1 ) ( -1 0 0 ) ( -1 64 0 ) radiant_regression_tests/blue 0 0 0 0.500000 0.500000 0 0 0
( 0 0 1 ) ( 0 0 0 ) ( 0 64 0 ) radiant_regression_tests/red 0 0 0 0.500000 0.500000 0 0 0
}
}