[SciPy-User] scipy.spatial.Delaunay.convex_hull problelm
Sat Feb 4 07:13:52 CST 2012
04.02.2012 11:48, Dan Richards kirjoitti:
> 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