Open EmmaPrats opened 5 years ago
No! Make it boxes!
Since we can assume that the sampling algorithm will find fewer points than the real space that the object occupies, it's a good idea to use boxes instead of spheres, since using spheres will yield even less volume.
We have a bounding box, so: pointVolume2D = gridSize gridSize pointVolume3D = gridSize gridSize * (boxWidth+boxHeight)/2
Or, if we assume that the user will assume that the letter is like an extruded glyph, not too thin, not too thick... pointVolume3D = gridSize gridSize gridSize
This might cause problems of the letters drowning too fast because the volume will be much smaller than the previous approach of making it a box of: widh = width height = height depth = (widh + height) / 2