Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
package com.marginallyclever.makelangelo.makeart.turtletool;
import com.marginallyclever.makelangelo.Translator;
import com.marginallyclever.makelangelo.turtle.Turtle;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class InfillTurtleAction extends TurtleTool {
private static final Logger logger = LoggerFactory.getLogger(InfillTurtleAction.class);
public InfillTurtleAction() {
super(Translator.get("InfillTurtleAction.title"));
}
@Override
public Turtle run(Turtle t) {
InfillTurtle infill = new InfillTurtle();
infill.setPenDiameter(t.getDiameter());
Turtle result = new Turtle(t);
try {
result.add(infill.run(t));
} catch (Exception ex) {
logger.error("Failed to infill", ex);
}
return result;
}
}
3f1df20e1This file is pinned to the selected release. Download the original to open it in your design tool.