Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Delaunay Tesselation
#3
In case of Scipy or matplotlib, they both invoke triangulation algorithm implemented in the qhull library. So, they are
almost the same, may be some preprocessing steps differ between scipy.spatial.Delaunay and matplotlib.tri.triangulation.

You can easily test efficiency of such triangulation,e.g.

import numpy as np
from scipy.spatial import Delaunay
data = np.random.rand(12000, 2)
def test():
    tri = Delaunay(data)
    tri.equations.shape
# in IPython
%timeit test
Output:
15.9 ns ± 0.243 ns per loop (mean ± std. dev. of 7 runs, 100000000 loops each)
Qhull library is implemented in C, and it is quite fast. I used scipy's triangulation (not too much yet),
and it didn't show any crashes. I think it is sufficiently robust.
Reply


Messages In This Thread
Delaunay Tesselation - by paul18fr - Jul-03-2019, 09:11 AM
RE: Delaunay Tesselation - by Larz60+ - Jul-03-2019, 11:03 AM
RE: Delaunay Tesselation - by scidam - Jul-03-2019, 11:13 AM
RE: Delaunay Tesselation - by paul18fr - Jul-04-2019, 12:58 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020