utkarshparasarampuria / 3DVoronoi

Computing the Voronoi diagram for a voxel set with arbitrary seed points
GNU General Public License v3.0
1 stars 0 forks source link

run code #1

Open ptxaxx opened 2 years ago

ptxaxx commented 2 years ago

Thank you for your sharing!When I run the code, there are a lot of syntax errors, do you have a complete code?

utkarshparasarampuria commented 2 years ago

Hi, thanks for going through the repository. This project has not been maintained for a long time, and I don't plan to do so in the near future. It worked perfectly at the time of its development, and I believe it should work even now with Python 2.7.x. Please let me know if you have any specific queries and I can try to help you.

ptxaxx commented 2 years ago

Thank you for your reply! it works well Python 2.7,But when I use my own data, only the unique color can be displayed,I find this file is missing colorfile.mtl,When I paste this file, the color display is still single; This is the program and file before I run image Running results: image image

How can I solve this problem? The result I want: image

In addition, I want to store the point coordinates contained in each block in a text,What should I do?

I hope to get your help! Best wishs

utkarshparasarampuria commented 2 years ago

As you can see in line 295 of voronoi.py, the user is supposed to input the percent of voxels that is desired to be used as the seed points. What are you entering there? I recommend you try with a high percentage like 20, see if you're getting a result as you'd want, and tweak the percentage according to your requirement.