Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'ConvexHull gives wrong result' topicStudent Support Forum > General > "ConvexHull gives wrong result"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
Peter Pein
10/30/11 04:14am

Hi,

just to amend the moderator's comment:

if points lie too dense and you've got the exact coordinates, simply stretch them. With list being your example data:

In[10]:= ch = ConvexHull[10^6 list]
Out[10]= {4, 3, 1, 2}

ListLinePlot[list[[ch /. {f_, r__} :> {f, r, f}]], Mesh -> Full] will show the parallelogram.

Peter


URL: ,

Subject (listing for 'ConvexHull gives wrong result')
Author Date Posted
ConvexHull gives wrong result Mario 10/28/11 12:06pm
Re: ConvexHull gives wrong result Forum Modera... 10/28/11 2:52pm
Re: ConvexHull gives wrong result Peter Pein 10/30/11 04:14am
Re: ConvexHull gives wrong result Mario 10/30/11 6:20pm
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic