QHull.jl
A Julia wrapper around a PyCall wrapper around the qhull Convex Hull library
Install / Use
/learn @JuliaPolyhedra/QHull.jlREADME
QHull
A Julia wrapper around a PyCall wrapper around scipy.spatial.ConvexHull, which uses the qhull Convex Hull library.
It implements the Polyhedral Computation library interface of Polyhedra.jl.
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.
Synopsis
Low-level interface:
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)
Using Polyhedra.jl:
using Polyhedra
# Constructs a V-representation of 10 random points in 2 dimension
v = vrep(rand(10, 2))
using QHull
# Constructs a polyhedon from this V-representation with the QHull library
p = polyhedron(v, QHull.Library())
# Removing redundant points, i.e. points which are in the interior of the convex hull
removevredundancy!(p)
# Show remaining points, i.e. the non-redundant ones
@show vrep(p)
# Show the H-representation, the facets describing the polytope
@show hrep(p)
Related Skills
node-connect
346.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
