<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>scalabox2d-svg/src/main/scala/org/villane/box2d/svg/ConvexHull.scala</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -8,6 +8,8 @@ import dsl.DSL._
 import shapes._
 import dynamics._
 
+import ConvexHull._
+
 import java.io.FileInputStream
 import org.newdawn.slick.Color
 import org.newdawn.slick.svg._
@@ -80,7 +82,7 @@ class SlickSVGSceneLoader(fileName: String, scale: Float)
           ps(i) = (p(0) - poly.getCenterX, p(1) - poly.getCenterY) / scale
         }
         if (ps.length &lt;= 8 &amp;&amp; poly.closed) {
-          polygon(ps:_*) density 1
+          polygon(convexHull(ps):_*) density 1
           if (isDynamic(fig)) massFromShapes
         } else {
           edge(ps:_*)</diff>
      <filename>scalabox2d-svg/src/main/scala/org/villane/box2d/svg/SlickSVGSceneLoader.scala</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>89c259164777652c3b2798a086f35e412e75d906</id>
    </parent>
  </parents>
  <author>
    <name>Erkki Lindpere</name>
    <email>villane@gmail.com</email>
  </author>
  <url>http://github.com/Villane/scalabox2d/commit/5b253c86088e9b3947444a3781017464e7f433a5</url>
  <id>5b253c86088e9b3947444a3781017464e7f433a5</id>
  <committed-date>2009-06-23T11:07:51-07:00</committed-date>
  <authored-date>2009-06-23T11:07:51-07:00</authored-date>
  <message>Added zzzzrrr-s convex hull creation to SVG loader.</message>
  <tree>16f96ab30280bb8128263e06a7123e47b324399b</tree>
  <committer>
    <name>Erkki Lindpere</name>
    <email>villane@gmail.com</email>
  </committer>
</commit>
