~typically/modelgui/mgui-neuro

« back to all changes in this revision

Viewing changes to src/mgui/io/standard/gifti/xml/GiftiXMLHandler.java

  • Committer: typically
  • Date: 2013-07-23 17:12:40 UTC
  • mfrom: (44.1.2 mgui-neuro)
  • Revision ID: typically-20130723171240-qupw1fcoplbpwino
Merge commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
465
465
                                                indexes[j] = arr2int(b_data, (j * n + i) * 4, order);
466
466
                                                }
467
467
                                        }
468
 
                                mesh.addFace(indexes[0], indexes[1], indexes[2]);
 
468
                                if (!mesh.addFace(indexes[0], indexes[1], indexes[2])){
 
469
                                        throw new SAXException("GiftiXMLHandler: Bad indices [" + indexes[0] + ", " 
 
470
                                                                                                                                                        + indexes[1] + ", "
 
471
                                                                                                                                                        + indexes[2] + "].");
 
472
                                        }
469
473
                                }
470
474
                        }
471
475