#361 CSGTool Bug


Boolean modelling causes a java exception:

java.lang.ArrayIndexOutOfBoundsException: 2
at artofillusion.object.CSGModeller.splitFaces(CSGModeller.java:465)
at artofillusion.object.CSGModeller.<init>(CSGModeller.java:85)
at artofillusion.CSGDialog.makePreview(CSGDialog.java:106)
at artofillusion.CSGDialog.<init>(CSGDialog.java:82)
at artofillusion.tools.CSGTool.commandSelected(CSGTool.java:65)


  • Carlos Martinez

    Carlos Martinez - 2008-08-15

    A cube and an airplane which cause the crash.

  • Harald G

    Harald G - 2009-01-01

    I tried it, too. With AoI 2.7ea2.
    It doesn´t crash but did nothing. The Boolean Editor window didn´t show up.
    I tried another cube and that worked with "cubo", as well as with the airplane.

    I also tried converting "cubo" into tris - no boolean editor.
    I tried Nik´s Shotgun (Solid Editor) on the plane - it shows some irregular geometry.
    The command "FIX ALL" fixes them, and after that the boolean Editor shows and it worked al well.

    So it was your geometry...

  • Nik Trevallyn-Jones

    Just to add to this:

    I believe that at least some of the times - and quite possibly more often than that, the "broken" geometry is actually created by the Boolean tool.

    As a general rule, I recommend using the SolidEditor to FIX irregular geometry on a regular basis when performing repeated boolean operations.


  • Peter Eastman

    Peter Eastman - 2009-02-08

    In 2.7.1 this will no longer produce an exception. It does take a long time to process, though, and then generates a messed up looking object. As Harald noted, this is due to the illegal geometry. If you can reconstruct how that object was created in the first place (so we can figure out how it came to have errors in it), please let us know.

  • Peter Eastman

    Peter Eastman - 2009-02-08
    • status: open --> pending-fixed
  • Carlos Martinez

    Carlos Martinez - 2009-02-10

    I started with a 3D model imported from some OBJ file. At the beginning it looked OK. I used the CSG tool to 'cut out' bits and pieces. After a few cuts I found it was throwing those exceptions to the console, and reported the problem. To be honest I didn't notice anything in the geometry after doing the cuts. As nik points out, i did use CSG repeatedly.

    Is it possible perhaps for the CSG tool to make a call to the Solid Editor FIX after every call?

  • Carlos Martinez

    Carlos Martinez - 2009-02-10
    • status: pending-fixed --> open-fixed
  • Luke S

    Luke S - 2014-12-29
    • status: open-fixed --> closed-invalid
    • Group: -->
  • Luke S

    Luke S - 2014-12-29

    As noted, The airplane object in the example file is not a valid solid before trying any CSG operations. As we don't know the steps the original submitter followed to create it, can't evaluate whether the Boolean modeler would still create that invalid airplane.


Log in to post a comment.