You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was able to succesfully install your library using the pip method on Ubuntu 18.04. I am able to import the module into python and I can run the test_examples.py script. However, when I look at the results, I see that the sampling functions do not work. Both pcu.sample_mesh_random() and pcu.sample_mesh_poisson_disk() just result in the original vertices and faces. There are no error or warning messages.
The text was updated successfully, but these errors were encountered:
The issue is that sample_mesh_poisson_disk downsamples a mesh using Poisson Disk sampling. Since you specify 100 times the number of vertices, you're going to get the whole mesh. If you have a mesh, you first need to upsample it. The new version of this library will include an upsample_mesh function which upsamples a mesh using subdivision.
This is now fixed. sample_mesh_poisson_disk generates Poisson disk samples on the mesh. There's a new parameter to generate a given number of samples, or you can use the radius.
I also fixed the random mesh sampling function sample_mesh_random to properly upsample.
Hello,
I was able to succesfully install your library using the pip method on Ubuntu 18.04. I am able to import the module into python and I can run the test_examples.py script. However, when I look at the results, I see that the sampling functions do not work. Both pcu.sample_mesh_random() and pcu.sample_mesh_poisson_disk() just result in the original vertices and faces. There are no error or warning messages.
The text was updated successfully, but these errors were encountered: