#5 al_polygon_z_normal is a mess

4.4.5
closed-fixed
None
5
2013-03-13
2011-06-13
No

Examples using this doesn't work properly (shows random polygons). I think it's data overflow (but in float-point?).

There's an example that works, and I wrote a JavaScript version that does.

Discussion

  • Guillermo Martínez Jiménez

    • assigned_to: Guillermo Martínez Jiménez
    • milestone: 4.4 --> 4.4.5
     
  • Guillermo Martínez Jiménez

    Confirmed overflow in fixed-point version. Floating-point seems to work properly.

    I've wrote a more-accurated version: al_polygon_z_sign. It uses 64bit.

     
  • Guillermo Martínez Jiménez

    • status: open --> closed-fixed