Hi all, this thread had sunk a bit while everyone has been playing with their new toys;)
Anyway, I've taken some inspiration (and a few lines of code:) ) from AtrusDni's script, and come up with this: [file](http://www.davegreenwood.com/downloads/dg_Voro_1.zip)
Have a play, dig through the script etc, and let me know what you think. It uses the brute force method similar to the earlier script or, if you have a lot of points to solve, I devised a method to reduce the searching process somewhat.
Here’s a timerX comparison of the two methods using 461 points:
select -r pTorus1 ;
select -add pTorus1_461_loc_GRP ;
// Example 1: Simple timing
//
$startTime = `timerX`;
// code that is being timed
doCubeRadVoro;
$totalTime = `timerX -startTime $startTime`;
print ("Total Time: "+$totalTime+"
");
Total Time: 1662.38
select -r pTorus1 ;
select -add pTorus1_461_loc_GRP ;
// Example 1: Simple timing
//
$startTime = `timerX`;
// code that is being timed
doBasicVoro;
$totalTime = `timerX -startTime $startTime`;
print ("Total Time: "+$totalTime+"
");
Total Time: 9546.19
A decent speed gain (although I hesitate to use the word speed). The difference with fewer points is less pronounced.
Cheers.
Dave.