Permalink
Commits on Jun 8, 2011
  1. @gorhill

    Added small feature: if user click inside canvas, diagram is recomput…

    …ed with existing sites
    gorhill committed Jun 8, 2011
  2. @gorhill

    See rhill-voronoi-core.js

    gorhill committed Jun 8, 2011
  3. @gorhill

    With this major revision, I consider code is now stable:

     - circle event now uses rb-tree code rather than sorted array
     - this allowed to remove numerous code path etc.
     - fixed serious bug introduced in an earlier revision in Voronoi.addBeachsection() (diagram computation failed when two or more first sites shared y value)
    gorhill committed Jun 8, 2011
Commits on Jun 4, 2011
  1. @gorhill

    see rhill-voronoi-core.js

    gorhill committed Jun 4, 2011
  2. @gorhill

    Mostly peformance work, mainly:

    * Vertices are now shared by edge objects, this reduces significantly the number of vertex objects to create
    * Vertices are now created as literal object exposing an x and y property, not worth to have a dedicated Voronoi.Vertex class
    * Beachsections are reused whenever possible, this reduces significantly the number of beachsections to create during computation. Example, for 25,000 Voronoi sites, number of beachsections instanciated went down from 25000-50000 to 400 approx.
    * For busy code path, expanded in place small functions calls
    Also, renaming and some internal reorganization of the code
    gorhill committed Jun 4, 2011
  3. @gorhill

    more details

    gorhill committed Jun 4, 2011
Commits on May 30, 2011
  1. @gorhill
  2. @gorhill
  3. @gorhill

    See rhill-voronoi-core.js

    gorhill committed May 30, 2011
  4. @gorhill

    Performance work: No longer worth to cache beachsection's left cut po…

    …int, since the cut point is now *only* evaluated at node insertion time. Because of this, caching ended up acting as a performance impediment rather than a performance boost. (left cut points used to be computed at node removal time as well, but this was revisited recently.)
    gorhill committed May 30, 2011
  5. @gorhill

    typo

    gorhill committed May 30, 2011
  6. @gorhill

    I meant *no* rendering code

    gorhill committed May 30, 2011
Commits on May 29, 2011
  1. @gorhill

    Fixed IE8 conditional scripting and now reflect color choice in knobs…

    … for each generator
    gorhill committed May 29, 2011
  2. @gorhill

    Fixed IE8 conditional scripting

    gorhill committed May 29, 2011
  3. @gorhill

    Fixed IE8 conditional scripting

    gorhill committed May 29, 2011
  4. @gorhill

    Performance work: test against zero in _leftParabolicCut() / avoid ca…

    …lling expensive leftBreakPoint() in removeArc(), no need to calculate the parabolic cut, all the information is readily available in the beachsection / expand equalWithEpsilon() in place faster than calling as a function
    gorhill committed May 29, 2011
  5. @gorhill

    Performance work: test against zero in _leftParabolicCut() / avoid ca…

    …lling expensive leftBreakPoint() in removeArc(), no need to calculate the parabolic cut, all the information is readily available in the beachsection / expand equalWithEpsilon() in place faster than calling as a function
    gorhill committed May 29, 2011
Commits on May 27, 2011
  1. @gorhill
  2. @gorhill

    oops

    gorhill committed May 27, 2011
  3. @gorhill

    This actually shouldn't be on github, at least for the time being -- …

    …it uses an old version of the Voronoi() object and is customized heavily in order to demonstrate Fortune's algorithm
    gorhill committed May 27, 2011
  4. @gorhill

    minor

    gorhill committed May 27, 2011
  5. @gorhill
  6. @gorhill

    More clean up

    gorhill committed May 27, 2011
  7. @gorhill

    Performance work:

      * '!obj' faster than 'obj === undefined'
      * simplified loop for removing undefined edges in Cell.prepare()
    gorhill committed May 27, 2011
  8. @gorhill

    Fixed queueSanitize(): it was not doing its job due to increment/decr…

    …ement of Voronoi.numBeachsections being misplaced in the code path. Also, revised implementation of queueSanitize() after I figured most voided circle events are likely to be found toward the beginning of the circle events queue. This helped performance, especially on FF, as the queue was never shrinking, causing queuePushCircle() to struggle
    gorhill committed May 27, 2011
  9. @gorhill

    Minor change to visual

    gorhill committed May 27, 2011
  10. @gorhill
  11. @gorhill
  12. @gorhill
  13. @gorhill

    Performance work, notably having the binary tree keep references to p…

    …revious/next nodes so that these no longer to be found on-the-fly.
    
    Usage change: returned 'cells' member is now an Array instead of an object.
    gorhill committed May 27, 2011
Commits on May 26, 2011
  1. @gorhill
  2. @gorhill
  3. @gorhill
  4. @gorhill

    Improved loop performance

    gorhill committed May 26, 2011
  5. @gorhill

    Performance improved a bit on Firefox: circumcircle now calculated in…

    … place in Voronoi.addCircleEvent(), which allow to reuse calculations + other minor changes
    gorhill committed May 26, 2011