From 037e2053892e2f33f166504ebf66e96fe86acb9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Fri, 3 Nov 2023 22:59:41 +0100 Subject: [PATCH] some doc --- .../decompiler/flash/xfl/shapefixer/ShapeFixer.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/xfl/shapefixer/ShapeFixer.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/xfl/shapefixer/ShapeFixer.java index 5a8e8454f..92a1a5b39 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/xfl/shapefixer/ShapeFixer.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/xfl/shapefixer/ShapeFixer.java @@ -24,7 +24,6 @@ import com.jpexs.decompiler.flash.types.shaperecords.EndShapeRecord; import com.jpexs.decompiler.flash.types.shaperecords.SHAPERECORD; import com.jpexs.decompiler.flash.types.shaperecords.StraightEdgeRecord; import com.jpexs.decompiler.flash.types.shaperecords.StyleChangeRecord; -import com.jpexs.helpers.Helper; import com.jpexs.helpers.Reference; import java.awt.geom.Point2D; import java.util.ArrayList; @@ -32,17 +31,14 @@ import java.util.List; import java.util.Objects; /** - * + * Shape fixer. + * This will walk a shape and split crossed edges so FLA editor can properly load it. * @author JPEXS */ public class ShapeFixer { final boolean DEBUG_PRINT = false; - private boolean isOnRight(Point2D a, Point2D b, Point2D c) { - return ((b.getX() - a.getX()) * (c.getY() - a.getY()) - (b.getY() - a.getY()) * (c.getX() - a.getX())) > 0; - } - private class BezierPair { BezierEdge be1; @@ -223,7 +219,6 @@ public class ShapeFixer { System.err.println("xxx"); } } - //List inters = be.getIntersections(be2); if (!t1Ref.isEmpty()) {