+ else {
+ Config.setConfigString(Config.KEY_POVRAY_FONT, fontPath);
+ }
+
+ // Make the definition of the base plane depending on whether there's an image or not
+ final boolean useImage = (inImageFile != null);
+ final boolean useImageOnBox = useImage && (inTerrainFile == null);
+ final String boxDefinition = (useImageOnBox ?
+ " <0, 0, 0>, <1, 1, 0.001>" + inLineSeparator
+ + " pigment {image_map { png \"" + inImageFile.getName() + "\" map_type 0 interpolate 2 once } }" + inLineSeparator
+ + " scale 20.0 rotate <90, 0, 0>" + inLineSeparator
+ + " translate <-10.0, 0, -10.0>"
+ : " <-10.0, -0.15, -10.0>," + inLineSeparator
+ + " <10.0, 0.0, 10.0>" + inLineSeparator
+ + " pigment { color rgb <0.5 0.75 0.8> }");
+ // TODO: Maybe could use the same geometry for the imageless case, would simplify code a bit
+
+ // Definition of terrain shape if any
+ final String terrainDefinition = makeTerrainString(inTerrainFile, inImageFile, inLineSeparator);
+