kottore / away3d

Automatically exported from code.google.com/p/away3d
0 stars 0 forks source link

[Broomstick] WireFrameGrid step calculation error #164

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Сalculation step is as follows:

var step:Number = gridSize / (gridSize / subDivision);

which is similar to

var step:Number = subDivision;

Original issue reported on code.google.com by System.g...@gmail.com on 26 Mar 2011 at 1:30

GoogleCodeExporter commented 8 years ago

Original comment by fabric...@gmail.com on 3 Apr 2011 at 7:04

GoogleCodeExporter commented 8 years ago
Hm...

Very good. But now grid step aren't equals. For example gridSize=10 and 
subDivision=3, wireFrameGrid construct grid cells [3,3,3,1]

But i think, need be

var step:Number = gridSize / subDivision; // steps are equals

step = 10 / 3 = 3.333
and wireFrameGrid constrict equal grid cells [3.333,3.333,3.333]

Original comment by System.g...@gmail.com on 3 Apr 2011 at 7:27

GoogleCodeExporter commented 8 years ago
should be correct now

Original comment by fabric...@gmail.com on 3 Apr 2011 at 7:57

GoogleCodeExporter commented 8 years ago
Thanks! And i'm sorry for my english :(

Original comment by System.g...@gmail.com on 3 Apr 2011 at 9:09