Skip to content

Instantly share code, notes, and snippets.

@zilmarinen
Created November 11, 2021 14:59
Show Gist options
  • Save zilmarinen/1c5d9d7a4e1af11aea3559cac517ad7f to your computer and use it in GitHub Desktop.
Save zilmarinen/1c5d9d7a4e1af11aea3559cac517ad7f to your computer and use it in GitHub Desktop.
Mesh output for Yield tile
{"bounds":[-0.5,0,-0.5,0.5,0.5,0.5],"polygons":[[[-0.5,0.5,-0.224620253165],[-0.5,0.5,-0.034999999999999996],[-0.33125,0.5,0.06375]],[[0.06375,0.5,0.33125],[-0.031226191449,0.5,0.386828660182],[0,0.5,0.440189873417]],[[0,0.5,0.36855555555499997],[0.23249999999999998,0.5,0.23249999999999998],[0.5,0.5,-0.224620253165],[0.5,0.5,-0.5],[-0.5,0.5,-0.5],[-0.5,0.5,-0.224620253165],[-0.23249999999999998,0.5,0.23249999999999998]],[[-0.03122619145,0.5,0.386828660181],[0,0.5,0.36855555555499997],[-0.06375,0.5,0.331249999999]],[[0.5,0.5,-0.034999999999999996],[0.5,0.5,-0.224620253165],[0.33125,0.5,0.06375]],[[0.5,0,-0.388888888889],[0.5,0,-0.194444444444],[0.25,0,0.25],[0.09,0,0.33999999999999997]],[[0.5,0,-0.194444444444],[0.5,0],[0.33999999999999997,0,0.09]],[[0.5,0,-0.388888888889],[0.09347181009,0,0.333827893175],[-0.5,0],[-0.5,0,-0.5],[0.5,0,-0.5]],[[0.09347181009,0,0.333827893175],[0.046735905045,0,0.416913946588],[-0.25,0,0.25],[-0.33999999999999997,0,0.09]],[[0.046735905045,0,0.416913946588],[0,0,0.5],[-0.09,0,0.33999999999999997]],[[-0.5,0.43,-0.034999999999999996],[-0.5,0.5,-0.034999999999999996],[-0.5,0.5,-0.5],[-0.5,0.43,-0.5]],[[-0.5,0.5,-0.5],[0.5,0.5,-0.5],[0.5,0.43,-0.5],[-0.5,0.43,-0.5]],[[[-0.06375,0.5,0.33125,-0.8630824441993726,0,0.5050630599388921,0,0,0,0.807,0.989,0.815],[-0.06375,0.43,0.33125,-0.8630824441993726,0,0.5050630599388921,0,0,0,0.807,0.989,0.815],[0,0.43,0.440189873417,-0.8630824441993726,0,0.5050630599388921,0,0,0,0.807,0.989,0.815],[0,0.5,0.440189873417,-0.8630824441993726,0,0.5050630599388921,0,0,0,0.807,0.989,0.815]],[-0.8630824441993726,0,0.5050630599388921,0.22232364442246802]],[[[-0.23249999999999998,0.5,0.23249999999999998,-0.505063059938892,0,0.8630824441993727,0,0,0,0.807,0.989,0.815],[-0.23249999999999998,0.43,0.23249999999999998,-0.505063059938892,0,0.8630824441993727,0,0,0,0.807,0.989,0.815],[-0.06375,0.43,0.33125,-0.505063059938892,0,0.8630824441993727,0,0,0,0.807,0.989,0.815],[-0.06375,0.5,0.33125,-0.505063059938892,0,0.8630824441993727,0,0,0,0.807,0.989,0.815]],[-0.5050630599388922,0,0.8630824441993726,0.31809382971214656]],[[[-0.33125,0.5,0.06375,-0.8630824441993727,0,0.5050630599388919,0,0,0,0.807,0.989,0.815],[-0.33125,0.43,0.06375,-0.8630824441993727,0,0.5050630599388919,0,0,0,0.807,0.989,0.815],[-0.23249999999999998,0.43,0.23249999999999998,-0.8630824441993727,0,0.5050630599388919,0,0,0,0.807,0.989,0.815],[-0.23249999999999998,0.5,0.23249999999999998,-0.8630824441993727,0,0.5050630599388919,0,0,0,0.807,0.989,0.815]],[-0.8630824441993726,0,0.5050630599388922,0.31809382971214656]],[[-0.5,0.5,-0.034999999999999996,-0.505063059938892,0,0.8630824441993726,0,0,0,0.807,0.989,0.815],[-0.5,0.43,-0.034999999999999996,-0.505063059938892,0,0.8630824441993726,0,0,0,0.807,0.989,0.815],[-0.33125,0.43,0.06375,-0.505063059938892,0,0.8630824441993726,0,0,0,0.807,0.989,0.815],[-0.33125,0.5,0.06375,-0.505063059938892,0,0.8630824441993726,0,0,0,0.807,0.989,0.815]],[[[0.06375,0.43,0.33125,0.8630824441993726,0,0.505063059938892,0,0,0,0.807,0.989,0.815],[0.06375,0.5,0.33125,0.8630824441993726,0,0.505063059938892,0,0,0,0.807,0.989,0.815],[0,0.5,0.440189873417,0.8630824441993726,0,0.505063059938892,0,0,0,0.807,0.989,0.815],[0,0.43,0.440189873417,0.8630824441993726,0,0.505063059938892,0,0,0,0.807,0.989,0.815]],[0.8630824441993726,0,0.5050630599388921,0.22232364442246802]],[[[0.23249999999999998,0.5,0.23249999999999998,0.8630824441993727,0,0.505063059938892,0,0,0,0.807,0.989,0.815],[0.23249999999999998,0.43,0.23249999999999998,0.8630824441993727,0,0.505063059938892,0,0,0,0.807,0.989,0.815],[0.33125,0.43,0.06375,0.8630824441993727,0,0.505063059938892,0,0,0,0.807,0.989,0.815],[0.33125,0.5,0.06375,0.8630824441993727,0,0.505063059938892,0,0,0,0.807,0.989,0.815]],[0.8630824441993726,0,0.5050630599388922,0.31809382971214656]],[[[0.06375,0.5,0.33125,0.5050630599388919,0,0.8630824441993727,0,0,0,0.807,0.989,0.815],[0.06375,0.43,0.33125,0.5050630599388919,0,0.8630824441993727,0,0,0,0.807,0.989,0.815],[0.23249999999999998,0.43,0.23249999999999998,0.5050630599388919,0,0.8630824441993727,0,0,0,0.807,0.989,0.815],[0.23249999999999998,0.5,0.23249999999999998,0.5050630599388919,0,0.8630824441993727,0,0,0,0.807,0.989,0.815]],[0.5050630599388922,0,0.8630824441993726,0.31809382971214656]],[[0.5,0.5,-0.034999999999999996],[0.5,0.43,-0.034999999999999996],[0.5,0.43,-0.5],[0.5,0.5,-0.5]],[[0.5,0.43,-0.034999999999999996],[0.5,0.5,-0.034999999999999996],[0.33125,0.5,0.06375],[0.33125,0.43,0.06375]],[[0.09,0.43,0.33999999999999997],[0.09,0,0.33999999999999997],[0.25,0,0.25],[0.25,0.43,0.25]],[[0.25,0.43,0.25],[0.25,0,0.25],[0.33999999999999997,0,0.09],[0.33999999999999997,0.43,0.09]],[[0.33999999999999997,0.43,0.09],[0.33999999999999997,0,0.09],[0.5,0],[0.5,0.43]],[[[0.09,0,0.33999999999999997,0.8715755371245494,0,0.4902612396325589,0,0,0,0.67,0.427,0.137],[0.09,0.43,0.33999999999999997,0.8715755371245494,0,0.4902612396325589,0,0,0,0.67,0.427,0.137],[0,0.43,0.5,0.8715755371245494,0,0.4902612396325589,0,0,0,0.67,0.427,0.137],[0,0,0.5,0.8715755371245494,0,0.4902612396325589,0,0,0,0.67,0.427,0.137]],[0.8715755371245494,0,0.4902612396325589,0.24513061981627945]],[[-0.5,0.43],[-0.5,0],[-0.33999999999999997,0,0.09],[-0.33999999999999997,0.43,0.09]],[[-0.33999999999999997,0.43,0.09],[-0.33999999999999997,0,0.09],[-0.25,0,0.25],[-0.25,0.43,0.25]],[[-0.25,0.43,0.25],[-0.25,0,0.25],[-0.09,0,0.33999999999999997],[-0.09,0.43,0.33999999999999997]],[[-0.09,0.43,0.33999999999999997],[-0.09,0,0.33999999999999997],[0,0,0.5],[0,0.43,0.5]],[[-0.5,0.43,-0.5],[0.5,0.43,-0.5],[0.5,0,-0.5],[-0.5,0,-0.5]],[[-0.5,0],[-0.5,0.43],[-0.5,0.43,-0.5],[-0.5,0,-0.5]],[[0.5,0.43,-0.5],[0.5,0.43],[0.5,0],[0.5,0,-0.5]],[[0.5,0.43],[0.5,0.43,-0.034999999999999996],[0.36630434782599997,0.43,0.043236714976],[0.33999999999999997,0.43,0.09]],[[-0.046735905044,0.43,0.416913946588],[-0.021821664925,0.43,0.402899686521],[-0.043236714976,0.43,0.36630434782599997],[-0.09,0.43,0.33999999999999997]],[[-0.273260869565,0.43,0.20864734299499998],[-0.25,0.43,0.25],[-0.043236714976,0.43,0.36630434782599997],[-0.06375,0.43,0.331249999999]],[[-0.33125,0.43,0.06375],[-0.36630434782599997,0.43,0.043236714976],[-0.273260869565,0.43,0.20864734299499998],[-0.23249999999999998,0.43,0.232499999999]],[[0.20864734299499998,0.43,0.273260869565],[0.25,0.43,0.25],[0.366304347827,0.43,0.043236714975],[0.33125,0.43,0.06375]],[[0.20864734299499998,0.43,0.273260869565],[0.232500000001,0.43,0.232499999999],[0.06375,0.43,0.33125],[0.043236714976,0.43,0.36630434782599997]],[[-0.017154094393,0.43,0.46950383218999997],[0,0.43,0.5],[0.09,0.43,0.33999999999999997],[0.043236714975,0.43,0.366304347827]],[[-0.021821664925,0.43,0.402899686521],[-0.046735905044,0.43,0.416913946588],[-0.017154094393,0.43,0.46950383218999997],[0,0.43,0.440189873417]],[[-0.5,0.43,-0.034999999999999996],[-0.5,0.43],[-0.33999999999999997,0.43,0.09],[-0.36630434782599997,0.43,0.043236714976]]]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment