fixed Mesh.java, made it really fast
[org.ibex.core.git] / src / org / ibex / core / Box.java
index b68480f..8c312de 100644 (file)
@@ -244,7 +244,11 @@ public final class Box extends JS.Obj implements Callable {
             } 
             // FIXME: texture
         } else {
-            if (mesh == null) mesh = new Mesh(new Polygon(path, Affine.identity()));
+            if (mesh == null) {
+                Log.warn(this, "generating mesh...");
+                mesh = new Mesh(new Polygon(path, Affine.identity()));
+                Log.warn(this, "  done generating mesh.");
+            }
             mesh.fill(buf, a, fillcolor, true, false);
             mesh.stroke(buf, a, strokecolor);
             //mesh.fill(buf, a, fillcolor, true, true);