}
private void exportMeshToSunflow(Mesh pMesh, String pFilename) {
try {
long t0 = System.currentTimeMillis();
SceneBuilder scene = ExampleScenes.getExampleScene1();
scene.addMesh()
.withMesh(pMesh)
.withName("generated mesh")
.withShader(ExampleScenes.SHADER_SHINY);
Tools.writeUTF8Textfile(pFilename, scene.getProduct());
long t1 = System.currentTimeMillis();
double elapsedTime = (t1 - t0) / 1000.0;
tinaController.showStatusMessage(currBaseFlame, "Scene \"" + new File(pFilename).getName() + "\" exported, elapsed time: " + Tools.doubleToString(elapsedTime) + "s");
}
catch (Exception ex) {