Skip to content
Snippets Groups Projects
Commit 9ebe4025 authored by Thomas Oster's avatar Thomas Oster
Browse files

VectorOptimizer: FILE: Don't change the job at all (preserve MOVETO ETC)

parent 3779cbed
No related branches found
No related tags found
No related merge requests found
......@@ -19,25 +19,29 @@
*/
package com.t_oster.liblasercut.vectoroptimizers;
import com.t_oster.liblasercut.VectorPart;
import java.util.LinkedList;
import java.util.List;
/**
* Just returns the elements in the order they already appear: like
* defined in the source file
* defined in the source file. It also preserves MOVETO commands and the
* directions
* @author Thomas Oster <thomas.oster@rwth-aachen.de>
*/
public class FileVectorOptimizer extends VectorOptimizer
{
@Override
public VectorPart optimize(VectorPart vp)
{
return vp;
}
@Override
protected List<Element> sort(List<Element> e)
{
List<Element> result = new LinkedList<Element>();
if (!e.isEmpty())
{
result.addAll(e);
}
return result;
return e;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment