Skip to content

Commit

Permalink
Fix self-intersecting polygon on the cabinet mesh
Browse files Browse the repository at this point in the history
  • Loading branch information
Insprill committed Apr 28, 2023
1 parent c063653 commit 9435a26
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 78 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Map Creation Package:
- Fixed switches snapping to turntables and other switches.
- Fixed occasional terrain related issues when exporting.
- Fixed procedural map backgrounds being completely white.
- Fixed the "polygon is self-intersecting" waring when importing the creation package.

0.1.1:
Runtime:
Expand Down
134 changes: 56 additions & 78 deletions PackageBuilder/Assets/Mapify/Meshes/Service Station/cabinet.obj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Blender 3.5.0
# Blender 3.5.1
# www.blender.org
g Cabinet
v -0.238307 0.699033 0.250126
Expand All @@ -9,13 +9,13 @@ v 0.205421 0.130093 -0.250126
v -0.205421 0.130093 -0.250126
v -0.205421 0.130093 0.250126
v 0.205421 0.130093 0.250126
v -0.238307 0.000000 -0.250126
v -0.238307 -0.000000 -0.250126
v -0.238307 0.000000 0.250126
v -0.205421 0.000000 -0.250126
v -0.205421 -0.000000 -0.250126
v 0.238307 0.000000 0.250126
v 0.238307 0.000000 -0.250126
v 0.238307 -0.000000 -0.250126
v 0.205421 0.000000 0.250126
v 0.205421 0.000000 -0.250126
v 0.205421 -0.000000 -0.250126
v -0.205421 0.000000 0.250126
v -0.238307 0.130093 -0.216974
v -0.238307 0.130093 0.216974
Expand All @@ -25,13 +25,13 @@ v -0.205421 0.130093 -0.216974
v -0.205421 0.130093 0.216974
v 0.205421 0.130093 -0.216974
v 0.205421 0.130093 0.216974
v -0.238307 0.000000 -0.216974
v -0.238307 -0.000000 -0.216974
v -0.238307 0.000000 0.216974
v 0.238307 0.000000 0.216974
v 0.238307 0.000000 -0.216974
v -0.205421 0.000000 -0.216974
v 0.238307 -0.000000 -0.216974
v -0.205421 -0.000000 -0.216974
v -0.205421 0.000000 0.216974
v 0.205421 0.000000 -0.216974
v 0.205421 -0.000000 -0.216974
v 0.205421 0.000000 0.216974
v 0.238295 0.628322 -0.195433
v 0.249284 0.628322 -0.193622
Expand Down Expand Up @@ -71,22 +71,21 @@ vn 1.0000 -0.0000 -0.0000
vn -0.0000 -1.0000 -0.0000
vn -0.0000 -0.0000 -1.0000
vn -0.0000 -0.0000 1.0000
vn -0.0000 -0.1264 -0.9920
vn 0.1596 -0.1926 -0.9682
vn 0.1596 -0.5485 -0.8208
vn 0.1596 -0.8208 -0.5484
vn 0.1596 -0.9682 -0.1926
vn 0.1596 -0.9682 0.1926
vn 0.1596 -0.8208 0.5484
vn 0.1596 -0.5485 0.8208
vn 0.1596 -0.1926 0.9682
vn 0.1596 0.1926 0.9682
vn 0.1596 0.5485 0.8208
vn 0.1596 0.8208 0.5484
vn 0.1596 0.9682 0.1926
vn 0.1596 0.9682 -0.1926
vn 0.1596 -0.5484 -0.8208
vn 0.1596 -0.8208 -0.5485
vn 0.1596 -0.9682 -0.1925
vn 0.1596 -0.9682 0.1924
vn 0.1596 -0.8208 0.5485
vn 0.1595 -0.5484 0.8208
vn 0.1596 -0.1927 0.9682
vn 0.1596 0.1927 0.9682
vn 0.1595 0.5484 0.8208
vn 0.1596 0.8208 0.5485
vn 0.1596 0.9682 0.1924
vn 0.1596 0.9682 -0.1925
vn 0.1596 0.8208 -0.5485
vn 0.1596 0.5485 -0.8208
vn 0.1596 0.5484 -0.8208
vn 0.1596 0.1926 -0.9682
vt 0.875000 0.750000
vt 0.625000 0.000000
Expand Down Expand Up @@ -114,7 +113,6 @@ vt 0.375000 0.750000
vt 0.375000 0.500000
vt 0.375000 0.767249
vt 0.357751 0.750000
vt 0.000000 0.000000
vt 0.375000 0.482751
vt 0.357751 0.500000
vt 0.142249 0.750000
Expand All @@ -128,119 +126,99 @@ vt 0.142249 0.516568
vt 0.142249 0.733432
vt 0.357751 0.516568
vt 0.357751 0.733432
vt 0.000000 0.000000
vt 0.375000 0.233432
vt 0.125000 0.516568
vt 0.125000 0.733432
vt 0.375000 0.016568
vt 0.375000 0.733432
vt 0.000000 0.000000
vt 0.375000 0.516568
vt 0.142249 0.516568
vt 0.142249 0.733432
vt 0.357751 0.516568
vt 0.357751 0.733432
vt 0.000000 0.000000
vt 1.000000 0.500000
vt 0.000000 0.500000
vt 0.750000 0.490000
vt 1.000000 0.720239
vt 0.250000 0.556028
vt 0.000000 0.720239
vt 0.937500 0.500000
vt 0.841844 0.471731
vt 0.937500 0.720239
vt 0.367112 0.532733
vt 0.875000 0.500000
vt 0.919706 0.419706
vt 0.875000 0.720239
vt 0.466394 0.466394
vt 0.812500 0.500000
vt 0.971731 0.341844
vt 0.812500 0.720239
vt 0.532732 0.367111
vt 0.750000 0.500000
vt 0.990000 0.250000
vt 0.750000 0.720239
vt 0.556029 0.250000
vt 0.687500 0.500000
vt 0.971731 0.158156
vt 0.687500 0.720239
vt 0.532734 0.132888
vt 0.625000 0.500000
vt 0.919706 0.080294
vt 0.625000 0.720239
vt 0.466395 0.033605
vt 0.562500 0.500000
vt 0.841844 0.028269
vt 0.562500 0.720239
vt 0.367112 -0.032734
vt 0.500000 0.500000
vt 0.750000 0.010000
vt 0.500000 0.720239
vt 0.250000 -0.056028
vt 0.437500 0.500000
vt 0.658156 0.028269
vt 0.437500 0.720239
vt 0.132888 -0.032734
vt 0.375000 0.500000
vt 0.580294 0.080294
vt 0.375000 0.720239
vt 0.033606 0.033605
vt 0.312500 0.500000
vt 0.528269 0.158156
vt 0.312500 0.720239
vt -0.032733 0.132888
vt 0.250000 0.500000
vt 0.510000 0.250000
vt 0.250000 0.720239
vt -0.056027 0.250000
vt 0.187500 0.500000
vt 0.528269 0.341844
vt 0.187500 0.720239
vt -0.032735 0.367111
vt 0.125000 0.500000
vt 0.580294 0.419706
vt 0.033606 0.466394
vt 0.125000 0.720239
vt 0.062500 0.500000
vt 0.658156 0.471731
vt 0.132888 0.532733
vt 0.062500 0.720239
s 0
f 2/4/1 1/1/1 3/6/1 4/7/1
f 23/39/2 5/9/2 15/29/2 31/51/2
f 4/7/3 3/6/3 12/23/3 27/46/3 19/34/3 20/36/3 28/48/3 13/24/3
f 32/52/4 27/46/4 12/23/4 14/26/4
f 26/44/4 30/50/4 16/30/4 10/18/4
f 6/10/5 11/21/5 9/16/5 2/5/5 4/7/5 13/24/5 15/28/5 5/8/5
f 22/38/3 7/12/3 16/30/3 30/50/3
f 1/2/2 2/5/2 9/16/2 25/42/2 17/32/2 18/33/2 26/45/2 10/19/2
f 22/38/4 18/33/4 17/32/4 21/37/4 6/11/4 5/9/4 23/39/4 20/36/4 19/35/4 24/40/4 8/15/4 7/12/4
f 3/6/6 1/3/6 10/20/6 16/31/6 7/13/6 8/14/6 14/25/6 12/23/6
f 6/11/3 21/37/3 29/49/3 11/22/3
f 25/43/6 29/49/6 21/37/6 17/32/6
f 9/17/4 11/22/4 29/49/4 25/43/4
f 23/39/6 31/51/6 28/48/6 20/36/6
f 15/29/4 13/24/4 28/48/4 31/51/4
f 18/33/5 22/38/5 30/50/5 26/45/5
f 8/15/2 24/40/2 32/52/2 14/26/2
f 32/53/7 24/41/7 19/35/7 27/47/7 14/27/7
f 33/54/8 34/57/8 36/62/8 35/60/8
f 35/60/9 36/62/9 38/66/9 37/64/9
f 37/64/10 38/66/10 40/70/10 39/68/10
f 39/68/11 40/70/11 42/74/11 41/72/11
f 41/72/12 42/74/12 44/78/12 43/76/12
f 43/76/13 44/78/13 46/82/13 45/80/13
f 45/80/14 46/82/14 48/86/14 47/84/14
f 47/84/15 48/86/15 50/90/15 49/88/15
f 49/88/16 50/90/16 52/94/16 51/92/16
f 51/92/17 52/94/17 54/98/17 53/96/17
f 53/96/18 54/98/18 56/102/18 55/100/18
f 55/100/19 56/102/19 58/106/19 57/104/19
f 57/104/20 58/106/20 60/110/20 59/108/20
f 59/108/21 60/110/21 62/115/21 61/112/21
f 36/63/3 34/58/3 64/118/3 62/114/3 60/111/3 58/107/3 56/103/3 54/99/3 52/95/3 50/91/3 48/87/3 46/83/3 44/79/3 42/75/3 40/71/3 38/67/3
f 61/112/22 62/115/22 64/119/22 63/116/22
f 63/116/23 64/119/23 34/59/23 33/55/23
f 33/56/2 35/61/2 37/65/2 39/69/2 41/73/2 43/77/2 45/81/2 47/85/2 49/89/2 51/93/2 53/97/2 55/101/2 57/105/2 59/109/2 61/113/2 63/117/2
f 23/38/2 5/9/2 15/28/2 31/48/2
f 4/7/3 3/6/3 12/23/3 27/44/3 19/33/3 20/35/3 28/45/3 13/24/3
f 32/49/4 27/44/4 12/23/4 14/26/4
f 26/42/4 30/47/4 16/29/4 10/18/4
f 6/10/5 11/21/5 9/16/5 2/5/5 4/7/5 13/24/5 15/27/5 5/8/5
f 22/37/3 7/12/3 16/29/3 30/47/3
f 1/2/2 2/5/2 9/16/2 25/40/2 17/31/2 18/32/2 26/43/2 10/19/2
f 22/37/4 18/32/4 17/31/4 21/36/4 6/11/4 5/9/4 23/38/4 20/35/4 19/34/4 24/39/4 8/15/4 7/12/4
f 3/6/6 1/3/6 10/20/6 16/30/6 7/13/6 8/14/6 14/25/6 12/23/6
f 6/11/3 21/36/3 29/46/3 11/22/3
f 25/41/6 29/46/6 21/36/6 17/31/6
f 9/17/4 11/22/4 29/46/4 25/41/4
f 23/38/6 31/48/6 28/45/6 20/35/6
f 15/28/4 13/24/4 28/45/4 31/48/4
f 18/32/5 22/37/5 30/47/5 26/43/5
f 8/15/2 24/39/2 32/49/2 14/26/2
f 27/44/5 32/49/5 24/39/5 19/34/5
f 33/50/7 34/52/7 36/56/7 35/55/7
f 35/55/8 36/56/8 38/59/8 37/58/8
f 37/58/9 38/59/9 40/62/9 39/61/9
f 39/61/10 40/62/10 42/65/10 41/64/10
f 41/64/11 42/65/11 44/68/11 43/67/11
f 43/67/12 44/68/12 46/71/12 45/70/12
f 45/70/13 46/71/13 48/74/13 47/73/13
f 47/73/14 48/74/14 50/77/14 49/76/14
f 49/76/15 50/77/15 52/80/15 51/79/15
f 51/79/16 52/80/16 54/83/16 53/82/16
f 53/82/17 54/83/17 56/86/17 55/85/17
f 55/85/18 56/86/18 58/89/18 57/88/18
f 57/88/19 58/89/19 60/92/19 59/91/19
f 59/91/20 60/92/20 62/96/20 61/94/20
f 36/57/3 34/53/3 64/98/3 62/95/3 60/93/3 58/90/3 56/87/3 54/84/3 52/81/3 50/78/3 48/75/3 46/72/3 44/69/3 42/66/3 40/63/3 38/60/3
f 61/94/21 62/96/21 64/99/21 63/97/21
f 63/97/22 64/99/22 34/54/22 33/51/22

0 comments on commit 9435a26

Please sign in to comment.