Skip to content

Instantly share code, notes, and snippets.

@dbuscombe-usgs
Last active December 20, 2015 06:19
Show Gist options
  • Save dbuscombe-usgs/6085379 to your computer and use it in GitHub Desktop.
Save dbuscombe-usgs/6085379 to your computer and use it in GitHub Desktop.
Alpha shape
def get_alpha_shape(infile,radius):
command = "%s -A -aa %s -r -m10000000 -oN -oFpoints < %s" % (hull_path, str(radius), infile)
print >> sys.stderr, "Running command: %s" % command
retcode = subprocess.call(command, shell=True)
results_file = open("points-alf")
results_file.next()
results_indices = [[int(i) for i in line.rstrip().split()] for line in results_file]
results_file.close()
return results_indices
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment