Skip to content

Instantly share code, notes, and snippets.

@cignoni
Last active November 9, 2021 15:08
Show Gist options
  • Save cignoni/f77ccde54b7ce0b55860d2f3c8933293 to your computer and use it in GitHub Desktop.
Save cignoni/f77ccde54b7ce0b55860d2f3c8933293 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
import numpy as np
import pymeshlab as ml
import k3d
ms = ml.MeshSet()
ms.set_verbosity(False)
ms.sphere(subdiv=6)
ms.poisson_disk_sampling(samplenum=100)
print("Face Num:",ms.current_mesh().face_number(), "VertNum",ms.current_mesh().vertex_number())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment