Delaunay Import from Qhull to Rhino

This script translates the delaunay triangulation information from QHull into geometry in Rhino. You need to export a .txt file from Qhull in the qdelaunay i format for this to work.

This script was based on a similar voronoi importing script by Stylianos Dritsas @

View the Script

delaunay geometryThis script creates the delaunay triangulation geometry from a Qhull text file.

2 Responses Subscribe to comments

  1. ryan

    Hey Luis, ran into a small problem trying this script. When running the script, after accessing the output.txt I’m told variable is undefined: ‘i’ on line 48 character 2. Ive tried several different outputs but always the same. It is in the qdelaunay i format from qhull.
    Any ideas?

    Apr 01, 2009 @ 2:40 pm

  2. Luis

    I’m having computer problems now so I’m not able to run and debug the script in Rhino, but I may have a solution. Looking over the text of it, it seems I did forget to declare the variable ‘i’, but that’s a quick fix. In line 47 (it should be blank) just write in “Dim i” (without the quotation marks of course). That should work. If not, let me know. I’ll post an updated script as soon as I’m able to.

    Apr 01, 2009 @ 10:36 pm


Spam Protection by WP-SpamFree