This commit is contained in:
Jindra Petřík
2023-11-03 22:59:41 +01:00
parent 659dd45045
commit 037e205389

View File

@@ -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<Point2D> inters = be.getIntersections(be2);
if (!t1Ref.isEmpty()) {