-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We also used @stevengj's [advice](https://groups.google.com/d/msg/julia-users/oiz8bbykvag/uR4roTsFAwAJ) to not use @pyimport in a Module.
- Loading branch information
1 parent
6d06b8f
commit 0502b44
Showing
6 changed files
with
23 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,25 @@ | ||
CHull | ||
QHull | ||
===== | ||
[![Build Status](https://travis-ci.org/davidavdav/CHull.jl.svg)](https://travis-ci.org/davidavdav/CHull.jl) | ||
[![Build Status](https://travis-ci.org/davidavdav/QHull.jl.svg)](https://travis-ci.org/davidavdav/QHull.jl) | ||
|
||
|
||
A Julia wrapper around a PyCall wrapper around `scipy.spatial.ConvexHull`, which uses the qhull Convex Hull library. | ||
|
||
The qhull library for computing the convex hull of data points seems to be the standard and very widely used. | ||
|
||
This module is a quick wrapper around a Python wrapper around the library, as suggested by [Miles Lubin](https://groups.google.com/d/topic/julia-users/e9m8t5W3TVs/discussion). | ||
This module is a quick wrapper around a Python wrapper around the library, as suggested by [Miles Lubin](https://groups.google.com/d/topic/julia-users/e9m8t5W3TVs/discussion). | ||
|
||
Synopsis | ||
-------- | ||
|
||
```julia | ||
|
||
using CHull | ||
using QHull | ||
|
||
p = rand(10,2) | ||
ch = chull(p) | ||
ch.points # original points | ||
ch.vertices # indices to line segments forming the convex hull | ||
ch.simplices # the simplexes forming the convex hull | ||
show(ch) | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/env julia | ||
include("src/CHull.jl") | ||
using CHull | ||
include("src/QHull.jl") | ||
using QHull | ||
|
||
cd("test") | ||
include("test/runtests.jl") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
using CHull | ||
using QHull | ||
|
||
p = rand(10,2) | ||
ch = chull(p) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters