Skip to content

Instantly share code, notes, and snippets.

View gperonato's full-sized avatar

Giuseppe Peronato gperonato

View GitHub Profile
@gperonato
gperonato / gist:0b6bfee6ee32d3770f22faf4fa8e1843
Last active May 23, 2016 13:40 — forked from bengolder/gist:1019295
Grasshopper File and Geometry Import Script
# Original code by bengolder https://gist.github.com/bengolder/1019295
# Modified by gperonato https://gist.github.com/gperonato/
#Inputs: FilePath (String) and DoImport (Boolean)
#Outputs: Geometry (Tree of geometry) and LayerList (List of strings)
import Rhino
@gperonato
gperonato / LiDAR-trees2___QHull-export___b07d.py
Created May 6, 2016 21:19
Qhull access from Grasshopper
# Script to export point clouds to QHull and run QConvex
#Inputs: P (Tree of points), Run (Boolean)
#Outputs: paths (List of paths)
import rhinoscriptsyntax as rs
import os
import subprocess