[SciPy-User] Triangulate point cloud

Vasco Gervasi yellowhat46 at gmail.com
Sat Feb 13 08:40:32 EST 2016


Seems that I found a good solution [I will try later with real data].
Using pyevtk I am able to create a .vtu file:

> import numpy
> from pyevtk.hl import pointsToVTK
> n = 10**5
> x = numpy.random.randn(n)
> y = numpy.random.randn(n)
> z = numpy.random.randn(n)
> d = numpy.random.randn(n)
> pointsToVTK("./points", x, y, z, data = {"C" : d})

Then open the points.vtu file in paraview and run Filters -> Alphabetical
-> Delauny3D.

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20160213/6e1a8bd8/attachment.html>


More information about the SciPy-User mailing list