Skip to content
Snippets Groups Projects
Verified Commit 4b85ad52 authored by philippe.verley_ird.fr's avatar philippe.verley_ird.fr Committed by philippe.verley_ird.fr
Browse files

Added try/catch in the voxel file parser of the 3d visualisation module.

Updated .gitignore
parent 5b4bca98
No related branches found
No related tags found
No related merge requests found
/AMAPVox/Dependencies/Commons/commons-animation/target/
/AMAPVox/Dependencies/Commons/commons-util/target/
/AMAPVox/Dependencies/Commons/commons-math/target/
/AMAPVox/Dependencies/Commons/commons-javafx/target/
......@@ -7,6 +6,7 @@
/AMAPVox/Dependencies/Commons/commons-structure/target/
/AMAPVox/Dependencies/Commons/commons-spds/target/
/AMAPVox/Dependencies/LidarFormatConverter/target/
/AMAPVox/Dependencies/Nephos3D/target/
/AMAPVox/AMAPVoxCore/target/
/AMAPVox/AMAPVoxGUI/target/
/AMAPVox/AMAPVoxGUI/log.txt
......
......@@ -73,7 +73,7 @@ public class Visualization {
/* Set the Nimbus look and feel */
try {
javax.swing.UIManager.
setLookAndFeel("javax.swing.plaf.nimbus.NimbusLookAndFeel");
setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
} catch (ClassNotFoundException | InstantiationException
| IllegalAccessException | UnsupportedLookAndFeelException ex) {
Logger.getLogger(Visualization.class.getName()).log(Level.SEVERE, null, ex);
......
......@@ -253,7 +253,11 @@ public class VoxelSpaceFile extends JProgressable {
List<Float> values = new ArrayList();
for (String value : line.split(" ")) {
values.add(Float.valueOf(value));
try {
values.add(Float.valueOf(value));
} catch (NumberFormatException ex) {
values.add(Float.NaN);
}
}
addLine(values);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment