@Override
public void init(Object data) {
if(data instanceof TriMesh2D){
mesh = (TriMesh2D) data;
meshPlotter = new MeshPlotter(mesh);
applyViewSettings();
content.setPlotObject(meshPlotter, true);
controls.init(meshPlotter);
} else if(MainGUI.DEBUG_LOADCASE) {
try {
mesh = MeshReader.readMesh(BSConstants.getTempFile("msh"));
meshPlotter = new MeshPlotter(mesh);
applyViewSettings();
content.setPlotObject(meshPlotter, true);
controls.init(meshPlotter);
} catch (Exception ex) {