[SciPy-User] scipy.spatial.Delaunay.convex_hull problelm

Pauli Virtanen pav at iki.fi
Sat Feb 4 08:13:52 EST 2012


04.02.2012 11:48, Dan Richards kirjoitti:
[clip]
> This allows me to create a three-dimensional tetragedron. I had thought
> to find the 3D convex hull could simply change either: “v = x.verticies”
> into “v=x.*convex_hull*” ; or “Del = scipy.spatial.Delaunay (Points)”
> into “Del = scipy.spatial.Delaunay.*convex_hull*(Points)”.However,
> neither of these have worked as planned?

Elements of the convex hull are triangles, not tetrahedra, so you need 
to change the code also below.

for i1, i2, i3 in Del.convex_hull:
     faces.extend([(v[i1,0], ............), .... (.... v[i3,3]),])




More information about the SciPy-User mailing list