Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect placement, testset SHAPES2 #90

Open
Thejipppp opened this issue Feb 19, 2020 · 0 comments
Open

Incorrect placement, testset SHAPES2 #90

Thejipppp opened this issue Feb 19, 2020 · 0 comments

Comments

@Thejipppp
Copy link

I tested the code with the (x10 scaled) SHAPES2 testset, and the squares in the testset overlap with the octagons.

Standard configuration, using the bin 150x20000 rectangle.

SHAPES2 with plate.svg
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg height="8000" width="8000" xmlns="http://www.w3.org/2000/svg" xmlns:xlink= "http://www.w3.org/1999/xlink" viewBox="0 0 20001 10001">
	<polygon points="500,1500 520,1490 540,1500 540,1530 520,1540 500,1530 " style="fill:lime;stroke:purple;stroke-width:1" />
	<polygon points="500,2500 520,2490 540,2500 540,2530 520,2540 500,2530 " style="fill:lime;stroke:purple;stroke-width:1" />
	<polygon points="500,3500 520,3490 540,3500 540,3530 520,3540 500,3530 " style="fill:lime;stroke:purple;stroke-width:1" />
	<polygon points="500,4500 520,4490 540,4500 540,4530 520,4540 500,4530 " style="fill:lime;stroke:purple;stroke-width:1" />
	<polygon points="1500,1500 1530,1500 1520,1520 1530,1540 1530,1550 1510,1550 1490,1530 1490,1510 " style="fill:lime;stroke:purple;stroke-width:1" />
	<polygon points="1500,2500 1530,2500 1520,2520 1530,2540 1530,2550 1510,2550 1490,2530 1490,2510 " style="fill:lime;stroke:purple;stroke-width:1" />
	<polygon points="1500,3500 1530,3500 1520,3520 1530,3540 1530,3550 1510,3550 1490,3530 1490,3510 " style="fill:lime;stroke:purple;stroke-width:1" />
	<polygon points="1500,4500 1530,4500 1520,4520 1530,4540 1530,4550 1510,4550 1490,4530 1490,4510 " style="fill:lime;stroke:purple;stroke-width:1" />
	<polygon points="2500,1500 2520,1500 2530,1510 2530,1530 2520,1540 2500,1540 2490,1530 2490,1510 " style="fill:lime;stroke:purple;stroke-width:1" />
	<polygon points="2500,2500 2520,2500 2530,2510 2530,2530 2520,2540 2500,2540 2490,2530 2490,2510 " style="fill:lime;stroke:purple;stroke-width:1" />
	<polygon points="2500,3500 2520,3500 2530,3510 2530,3530 2520,3540 2500,3540 2490,3530 2490,3510 " style="fill:lime;stroke:purple;stroke-width:1" />
	<polygon points="2500,4500 2520,4500 2530,4510 2530,4530 2520,4540 2500,4540 2490,4530 2490,4510 " style="fill:lime;stroke:purple;stroke-width:1" />
	<polygon points="3500,1500 3520,1510 3540,1500 3530,1520 3540,1550 3520,1540 3500,1550 3510,1530 " style="fill:lime;stroke:purple;stroke-width:1" />
	<polygon points="3500,2500 3520,2510 3540,2500 3530,2520 3540,2550 3520,2540 3500,2550 3510,2530 " style="fill:lime;stroke:purple;stroke-width:1" />
	<polygon points="3500,3500 3520,3510 3540,3500 3530,3520 3540,3550 3520,3540 3500,3550 3510,3530 " style="fill:lime;stroke:purple;stroke-width:1" />
	<polygon points="3500,4500 3520,4510 3540,4500 3530,4520 3540,4550 3520,4540 3500,4550 3510,4530 " style="fill:lime;stroke:purple;stroke-width:1" />
	<polygon points="4500,1500 4550,1500 4550,1550 4540,1550 4530,1530 4520,1520 4500,1510 " style="fill:lime;stroke:purple;stroke-width:1" />
	<polygon points="4500,2500 4550,2500 4550,2550 4540,2550 4530,2530 4520,2520 4500,2510 " style="fill:lime;stroke:purple;stroke-width:1" />
	<polygon points="4500,3500 4550,3500 4550,3550 4540,3550 4530,3530 4520,3520 4500,3510 " style="fill:lime;stroke:purple;stroke-width:1" />
	<polygon points="4500,4500 4550,4500 4550,4550 4540,4550 4530,4530 4520,4520 4500,4510 " style="fill:lime;stroke:purple;stroke-width:1" />
	<polygon points="5500,1500 5520,1530 5480,1530 " style="fill:lime;stroke:purple;stroke-width:1" />
	<polygon points="5500,2500 5520,2530 5480,2530 " style="fill:lime;stroke:purple;stroke-width:1" />
	<polygon points="5500,3500 5520,3530 5480,3530 " style="fill:lime;stroke:purple;stroke-width:1" />
	<polygon points="5500,4500 5520,4530 5480,4530 " style="fill:lime;stroke:purple;stroke-width:1" />
	<polygon points="6500,1500 6520,1500 6520,1520 6500,1520 " style="fill:lime;stroke:purple;stroke-width:1" />
	<polygon points="6500,2500 6520,2500 6520,2520 6500,2520 " style="fill:lime;stroke:purple;stroke-width:1" />
	<polygon points="6500,3500 6520,3500 6520,3520 6500,3520 " style="fill:lime;stroke:purple;stroke-width:1" />
	<polygon points="6500,4500 6520,4500 6520,4520 6500,4520 " style="fill:lime;stroke:purple;stroke-width:1" />

	<polygon points="10000,0 10000,150 20000,150 20000,0" style="fill:lime;stroke:purple;stroke-width:1" />
</svg>

image

output.svg
<svg xmlns="http://www.w3.org/2000/svg" width="8000" height="8000" viewBox="0 0 20001 10001"><g transform="translate(0 0)"><polygon points="10000,0 10000,150 20000,150 20000,0" style="fill:lime;stroke:purple;stroke-width:1" class="bin" transform="translate(-10000 0)"/><g transform="translate(-1490 540.0000000000002) rotate(270)"><polygon points="500,1500 520,1490 540,1500 540,1530 520,1540 500,1530 " style="fill:lime;stroke:purple;stroke-width:1"/></g><g transform="translate(-2490 580.0000000000005) rotate(270)"><polygon points="500,2500 520,2490 540,2500 540,2530 520,2540 500,2530 " style="fill:lime;stroke:purple;stroke-width:1"/></g><g transform="translate(-500 -3410) rotate(0)"><polygon points="500,3500 520,3490 540,3500 540,3530 520,3540 500,3530 " style="fill:lime;stroke:purple;stroke-width:1"/></g><g transform="translate(4577.5 -435.0000000000002) rotate(90)"><polygon points="500,4500 520,4490 540,4500 540,4530 520,4540 500,4530 " style="fill:lime;stroke:purple;stroke-width:1"/></g><g transform="translate(-1442.5 -1485) rotate(0)"><polygon points="1500,1500 1530,1500 1520,1520 1530,1540 1530,1550 1510,1550 1490,1530 1490,1510 " style="fill:lime;stroke:purple;stroke-width:1"/></g><g transform="translate(2585 -1385.0000000000002) rotate(90)"><polygon points="1500,2500 1530,2500 1520,2520 1530,2540 1530,2550 1510,2550 1490,2530 1490,2510 " style="fill:lime;stroke:purple;stroke-width:1"/></g><g transform="translate(3632.5 -1485.0000000000002) rotate(90)"><polygon points="1500,3500 1530,3500 1520,3520 1530,3540 1530,3550 1510,3550 1490,3530 1490,3510 " style="fill:lime;stroke:purple;stroke-width:1"/></g><g transform="translate(-1406.6666667 -4416.6666667) rotate(0)"><polygon points="1500,4500 1530,4500 1520,4520 1530,4540 1530,4550 1510,4550 1490,4530 1490,4510 " style="fill:lime;stroke:purple;stroke-width:1"/></g><g transform="translate(4673.3333333 1594.9999999999995) rotate(180)"><polygon points="4500,1500 4550,1500 4550,1550 4540,1550 4530,1530 4520,1520 4500,1510 " style="fill:lime;stroke:purple;stroke-width:1"/></g><g transform="translate(-3376.666666699999 4645.000000000001) rotate(270)"><polygon points="4500,3500 4550,3500 4550,3550 4540,3550 4530,3530 4520,3520 4500,3510 " style="fill:lime;stroke:purple;stroke-width:1"/></g><g transform="translate(4685.8333333 2549.9999999999995) rotate(180)"><polygon points="4500,2500 4550,2500 4550,2550 4540,2550 4530,2530 4520,2520 4500,2510 " style="fill:lime;stroke:purple;stroke-width:1"/></g><g transform="translate(-4326.666666699999 4600.000000000001) rotate(270)"><polygon points="4500,4500 4550,4500 4550,4550 4540,4550 4530,4530 4520,4520 4500,4510 " style="fill:lime;stroke:purple;stroke-width:1"/></g><g transform="translate(2693.3333333 1644.9999999999998) rotate(180)"><polygon points="2500,1500 2520,1500 2530,1510 2530,1530 2520,1540 2500,1540 2490,1530 2490,1510 " style="fill:lime;stroke:purple;stroke-width:1"/></g><g transform="translate(2715.8333333 -2490) rotate(90)"><polygon points="2500,2500 2520,2500 2530,2510 2530,2530 2520,2540 2500,2540 2490,2530 2490,2510 " style="fill:lime;stroke:purple;stroke-width:1"/></g><g transform="translate(3731.6666666 -2416.6666667) rotate(90)"><polygon points="2500,3500 2520,3500 2530,3510 2530,3530 2520,3540 2500,3540 2490,3530 2490,3510 " style="fill:lime;stroke:purple;stroke-width:1"/></g><g transform="translate(2745.8333333000005 4552.5) rotate(180)"><polygon points="2500,4500 2520,4500 2530,4510 2530,4530 2520,4540 2500,4540 2490,4530 2490,4510 " style="fill:lime;stroke:purple;stroke-width:1"/></g><g transform="translate(-3274.3333334 -1434.6666667) rotate(0)"><polygon points="3500,1500 3520,1510 3540,1500 3530,1520 3540,1550 3520,1540 3500,1550 3510,1530 " style="fill:lime;stroke:purple;stroke-width:1"/></g><g transform="translate(3789.8333333000005 2554.4999999999995) rotate(180)"><polygon points="3500,2500 3520,2510 3540,2500 3530,2520 3540,2550 3520,2540 3500,2550 3510,2530 " style="fill:lime;stroke:purple;stroke-width:1"/></g><g transform="translate(3795.6666666000006 3635.3333332999996) rotate(180)"><polygon points="3500,3500 3520,3510 3540,3500 3530,3520 3540,3550 3520,3540 3500,3550 3510,3530 " style="fill:lime;stroke:purple;stroke-width:1"/></g><g transform="translate(-3220.1666667 -4475.5) rotate(0)"><polygon points="3500,4500 3520,4510 3540,4500 3530,4520 3540,4550 3520,4540 3500,4550 3510,4530 " style="fill:lime;stroke:purple;stroke-width:1"/></g><g transform="translate(-5398.2142857 -1456.4285714) rotate(0)"><polygon points="5500,1500 5520,1530 5480,1530 " style="fill:lime;stroke:purple;stroke-width:1"/></g><g transform="translate(-5282.2222222 -2386.6666667) rotate(0)"><polygon points="5500,2500 5520,2530 5480,2530 " style="fill:lime;stroke:purple;stroke-width:1"/></g><g transform="translate(3823.6666665999996 -5390.6666667) rotate(90)"><polygon points="5500,3500 5520,3530 5480,3530 " style="fill:lime;stroke:purple;stroke-width:1"/></g><g transform="translate(-5348.3333334 -4382.5) rotate(0)"><polygon points="5500,4500 5520,4530 5480,4530 " style="fill:lime;stroke:purple;stroke-width:1"/></g><g transform="translate(6668.3333333 1569.999999999999) rotate(180)"><polygon points="6500,1500 6520,1500 6520,1520 6500,1520 " style="fill:lime;stroke:purple;stroke-width:1"/></g><g transform="translate(2750.7499999999995 -6387.2083334) rotate(90)"><polygon points="6500,2500 6520,2500 6520,2520 6500,2520 " style="fill:lime;stroke:purple;stroke-width:1"/></g><g transform="translate(-6336.6666667 -3385) rotate(0)"><polygon points="6500,3500 6520,3500 6520,3520 6500,3520 " style="fill:lime;stroke:purple;stroke-width:1"/></g><g transform="translate(-4212.166666699999 6528.500000000001) rotate(270)"><polygon points="6500,4500 6520,4500 6520,4520 6500,4520 " style="fill:lime;stroke:purple;stroke-width:1"/></g></g></svg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant