Polygon decomposition for AS3 - source attached

http://tim.kerchmar.com/RopeBurn.html

See attachment. AS3 port of code from this link: http://mnbayazit.com/406/bayazit

So far, I'm very impressed.
I cleaned up the code considerably, http://ptymn.blogspot.com/2010/02/bayaz ... n-as3.html
I was considering starting a Contrib/ directory in AS3 for things like this. Would you mind if I checked in this code, along with an adapter to Box2D objects? You'd need to specify a package name, and a license, but it doesn't have to be the same as Box2D itself (zlib).

What about the SVG parser?
Oh dude, take it. I have a personal belief that the hard work to pull things together and my art assets make the game have value, so the technology that I find and polish for my game is free for anyone. Box2D has done way more for me than I can do for it, so enjoy!

The SVG parser is a little bit hairy for you, because it would introduce a dependency with SVGWeb, which is OK for my project, but maybe not ok to introduce at the Box2D level. Again, use my code at will, its not really the point of my game but just something that I wish to solve for good for everyone.

Edit: Now that I think about it, some minimal form of written acknowledgement (or a link to my blog) would be appreciated. Is it typical to include a blurb at the top of each source file with that info, or some form of readme?
One other thing to note, that code for the polygon decomp says make CCW as one of its methods, but I think that a lucky +y = up/down mixup between the OpenGL and Flash platforms caused that code to stay correct. It worked and I didn't take the time to figure out what it should really be called.

Code:
      public static function foundPolygon(polygon:PolyDecompBayazit):void {
         polyID++;

         var box2DPoints:Array = new Array();
         
//         var i:int = 0;
         for each(var point:Point in polygon.points) {
            var box2DPoint:b2Vec2 = new b2Vec2(point.x, point.y);
//            Main.debugger.drawText("" + polySetID + "," + polyID + "," + i++, box2DPoint, 0xFFFFFF, true);
            box2DPoints.push(box2DPoint);
         }
         
         var shape:b2PolygonShape = b2PolygonShape.AsArray(box2DPoints, box2DPoints.length);
         Main.world.GetGroundBody().CreateFixture2(shape, 1.0);
      }
Cool. Dependencies are no problem in Contrib, I would think, given that the compiler only attempts the compile the classes you actually make use of.
But what about package name? com.kerchmar.tim.Bayazit?
com.nightschool.bayazit

The Night School, LLC is my legal alias. 🙂
You don't own that domain!
Aha, if its based off domain, then what you chose works beautifully.

Original thread: https://box2d.org/forum/viewtopic.php?t=4395