@Override public void run() { long start = System.currentTimeMillis(); //Copy List LinkedList<AssignmentNode> list = new LinkedList<AssignmentNode>(); for (AssignmentNode node: graphAssignmentNodes) list.add(node.copyElements()); HashMap<String, LinkedList<Point3d>> pointsToRender = curZeroFinder.findZeroLocations(globalValues, list, settingsPanel.getSettings(), renderIn2d); long sum = 0; for (String key : pointsToRender.keySet()) { LinkedList<Point3d> points = pointsToRender.get(key); sum += points.size(); String myKey = (key.endsWith("_S"))? key.substring(0, key.length()-2): key; computedPointClouds.put(key, new PointCloud(key, colors.get(myKey), points)); } findingComplete(sum, (System.currentTimeMillis()-start)/1000.0d); } }.start();
list.add(node.copyElements()); String name = node.getVariable().getName(); String newName = renderingExpressions.get(name).toString(); AssignmentNode nodeCpy = node.copyElements(); nodeCpy.setVariable(new MultivectorComponent(newName, ((MultivectorComponent) nodeCpy.getVariable()).getBladeIndex())); sb.append(nodeCpy.toString());