Skip to content

Commit 99e7e4f

Browse files
committed
formatting
1 parent b99f4cb commit 99e7e4f

File tree

1 file changed

+8
-7
lines changed
  • src/main/java/com/neuronrobotics/bowlerstudio/scripting/cadoodle

1 file changed

+8
-7
lines changed

src/main/java/com/neuronrobotics/bowlerstudio/scripting/cadoodle/Align.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ public class Align extends CaDoodleOperation {
3636

3737
@Expose(serialize = true, deserialize = true)
3838
protected String name = null;
39-
40-
private HashMap<CSG, Bounds> cache=null;
39+
40+
private HashMap<CSG, Bounds> cache = null;
4141

4242
public String getName() {
4343
if (name == null) {
@@ -69,7 +69,7 @@ public List<CSG> process(List<CSG> incoming) {
6969
ArrayList<CSG> back = new ArrayList<CSG>();
7070
back.addAll(incoming);
7171

72-
Bounds bounds2 = getBounds(incoming,cache);//
72+
Bounds bounds2 = getBounds(incoming, cache);//
7373

7474
HashMap<String, TransformNR> moves = new HashMap<>();
7575
HashMap<String, CSG> objects = new HashMap<String, CSG>();
@@ -219,8 +219,8 @@ public Bounds getBounds(List<CSG> incoming, HashMap<CSG, Bounds> inWorkplaneBoun
219219
return bounds.getBounds();
220220
}
221221
if (boundNames != null) {
222-
if(inWorkplaneBounds==null)
223-
inWorkplaneBounds=new HashMap<CSG, Bounds>();
222+
if (inWorkplaneBounds == null)
223+
inWorkplaneBounds = new HashMap<CSG, Bounds>();
224224
List<CSG> selectedCSG = getSelectedCSG(boundNames, incoming);
225225
return Align.getBounds(selectedCSG, workplane, inWorkplaneBounds);
226226
} else {
@@ -264,7 +264,7 @@ public static Bounds getBounds(List<CSG> incoming, TransformNR frame, HashMap<CS
264264
for (CSG csg : incoming) {
265265
if (cache.get(csg) == null) {
266266
Log.debug("Computing bounds for " + csg.getName());
267-
//Log.error(new RuntimeException("Computing bounds for " + csg.getName()));
267+
// Log.error(new RuntimeException("Computing bounds for " + csg.getName()));
268268
Transform inverse = TransformFactory.nrToCSG(frame).inverse();
269269

270270
if (csg.hasManipulator()) {
@@ -310,7 +310,8 @@ public static Bounds getBounds(List<CSG> incoming, TransformNR frame, HashMap<CS
310310
}
311311

312312
public Align copy() {
313-
return new Align().setBounds(boundNames).setNames(names).setAlignParams(x, y, z).setWorkplane(workplane).setCache(cache);
313+
return new Align().setBounds(boundNames).setNames(names).setAlignParams(x, y, z).setWorkplane(workplane)
314+
.setCache(cache);
314315
}
315316

316317
public HashMap<CSG, Bounds> getCache() {

0 commit comments

Comments
 (0)