Comments (3)
Qhull is an easy option, being used behind the scenes in the Delaunay
and griddata
functions in SciPy. Used in this way, it can triangulate 1 million random points in about 10 seconds.
Another interesting option could be porting the delaunator JavaScript library (ISC-licensed), which can apparently triangulate 1 million points in about 2 seconds. (Not to be confused with the Delaunator python library.)
The very fastest library I've heard of is fqDel (paper, slides), though no source seems available. The authors report being able to triangulate 1 million points in 0.2 seconds, a 4x speed improvement over Triangle.
from dhmqc.
We have experimented with Qhull before. At the time it wasn't as robust as Triangle and also slower. Things might have changed since, but I don't think so.
Another thing to this issue is that it would be preferable to use an existing Python module, so we limit the amount of code we have to maintain and also avoid compiling binaries as part of the installation Just a thing to keep in mind.
from dhmqc.
I have investigated a bit more. The Geogram C++ library seems very suitable for our purposes:
- Small, standalone Delaunay module with no mandatory dependencies outside standard library
- BSD (3-clause) license
- Fast and robust (I have successfully triangulated 100M random points in ~3 CPU minutes), time seems to scale roughly linearly with number of points
We'll just need to generate Python bindings for it.
CGAL (under GPLv3) can also handle at least 75M points (tested on an Ubuntu machine), but it is a fairly heavy library using lots of C++ templates, and does not seem to be anywhere as fast as Geogram without a bit of optimization.
Qhull is indeed not as fast, and complains when fed more than 16.7M input points.
from dhmqc.
Related Issues (16)
- Use logging module instead of print()
- Figure out why triangle fails when triangulating very large pointclouds (> 45M)
- Make use of proper configuration files (JSON) instead of variables in a python script
- dem_gem: Add "model-coverage" argument to script
- set_lake_z overhaul
- Create a proper python installer
- Migrate test_suite.py to unittest, pytest, nosetest or something equivalent
- gridsize generalization HOT 1
- Delaunay triangulation makes excessive copies of data HOT 1
- qc_wrap deadlocks with slow tile databases
- time.clock() HOT 1
- Import error on Linux HOT 2
- Could not find module libdelaunator.dll HOT 5
- z_accuracy_gcp fails after Python 3/Conda migration
- Migrate to laspy 2.x HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dhmqc.