portnov / sverchok-extra

Extra nodes for Sverchok
GNU General Public License v3.0
58 stars 9 forks source link

Voronoi 3D error #12

Closed nortikin closed 4 years ago

nortikin commented 4 years ago

Снимок экрана от 2020-04-21 16-42-09 scale issue Снимок экрана от 2020-04-21 16-44-50

portnov commented 4 years ago

I don't think this is a "scale" issue. The correct Voronoi diagram for this point is one point in (0,0,0) and several endless segments of plane. It should be something like Screenshot_20200421_191635 but in 3D. Note that the triangles at the illustrations above are triangles only because we cut these areas with a circle; otherwise, there should be just endless rays. Similar picture we would have in 3D. The problem is, there is currently no way to deal with such infinite segments of planes in Blender (you can't apply bisect modifier to infinite mesh, for example). For Voronoi 2D node, I implemented some algorithm of cutting such infinite areas manually. But for 3D such algorithm would be much more complex, so I've not implemented it yet. So such infinite segments / rays are just skipped instead.

portnov commented 4 years ago

This probably will have more sense if you change size of random vectors from all 1 to some random values: Screenshot_20200421_192603 Play around with this setup. You'll see what happens when you set Float High too close to Float Low.

portnov commented 4 years ago

Compare also to Screenshot_20200421_193445 (play around with Randomize value)...

nortikin commented 4 years ago

much a lot of thanks