Author Topic: Testing Parallel Linq  (Read 7061 times)

0 Members and 1 Guest are viewing this topic.

TheMaster

  • Guest
Re: Testing Parallel Linq
« Reply #15 on: August 31, 2012, 05:46:02 PM »
Added 3 additional tests for calculating extents (using 3 different methods), and a few minor revisions here and there.

Found some bugs  :roll:, I'll post a revised copy in a day or so.

Fixed more bugs, and included a very fast managed version of Extents3d.


TheMaster

  • Guest
Re: Testing Parallel Linq
« Reply #16 on: August 31, 2012, 10:55:13 PM »
Found some bugs  :roll:,
Code - C#: [Select]
  1. double f = ( max - min ) + min;

Not sure what I was thinking there, but it was merely supposed to do what this does:

Code - C#: [Select]
  1.    static IEnumerable<Point3d> GetRandomPoints( int count )
  2.    {
  3.       Random r = new Random();
  4.       for( int i = 0; i < count; i++ )
  5.       {
  6.          yield return new Point3d( r.NextDouble(), r.NextDouble(), r.NextDouble())
  7.             .ScaleBy( 10000, Point3d.Origin );
  8.       }
  9.    }
  10.