Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: constructing a continuous region from 2D data using
Replies: 4   Last Post: Jul 21, 2013 4:16 AM

 Messages: [ Previous | Next ]
 Bob Hanlon Posts: 906 Registered: 10/29/11
Re: constructing a continuous region from 2D data using
Posted: Jul 18, 2013 2:46 AM

data = {{0.939922, 0.0109069}, {0.941922, 0.0109069}, {0.943922,
0.0109069}, {0.945922, 0.0109069}, {0.947922, 0.0109069}, {0.949922,
0.0109069}, {0.951922, 0.0109069}, {0.953922, 0.0109069}, {0.955922,
0.0109069}, {0.957922, 0.0109069}, {0.959922, 0.0109069}, {0.961922,
0.0109069}, {0.963922, 0.0109069}, {0.965922, 0.0109069}, {0.967922,
0.0109069}, {0.969922, 0.0109069}, {0.971922, 0.0109069}, {0.973922,
0.0109069}, {0.975922, 0.0109069}, {0.940468, 0.0201746}, {0.942468,
0.0201746}, {0.944468, 0.0201746}, {0.946468, 0.0201746}, {0.948468,
0.0201746}, {0.950468, 0.0201746}, {0.952468, 0.0201746}, {0.954468,
0.0201746}, {0.956468, 0.0201746}, {0.958468, 0.0201746}, {0.960468,
0.0201746}, {0.962468, 0.0201746}, {0.964468, 0.0201746}, {0.966468,
0.0201746}, {0.968468, 0.0201746}, {0.970468, 0.0201746}, {0.972468,
0.0201746}, {0.974468, 0.0201746}, {0.976468, 0.0201746}, {0.941062,
0.0304687}, {0.943062, 0.0304687}, {0.945062, 0.0304687}, {0.947062,
0.0304687}, {0.949062, 0.0304687}, {0.951062, 0.0304687}, {0.953062,
0.0304687}, {0.955062, 0.0304687}, {0.957062, 0.0304687}, {0.959062,
0.0304687}, {0.961062, 0.0304687}, {0.963062, 0.0304687}, {0.965062,
0.0304687}, {0.967062, 0.0304687}, {0.969062, 0.0304687}, {0.971062,
0.0304687}, {0.973062, 0.0304687}, {0.975062, 0.0304687}, {0.941955,
0.0405944}, {0.943955, 0.0405944}, {0.945955, 0.0405944}, {0.947955,
0.0405944}, {0.949955, 0.0405944}, {0.951955, 0.0405944}, {0.953955,
0.0405944}, {0.955955, 0.0405944}, {0.957955, 0.0405944}, {0.959955,
0.0405944}, {0.961955, 0.0405944}, {0.963955, 0.0405944}, {0.965955,
0.0405944}, {0.967955, 0.0405944}, {0.969955, 0.0405944}, {0.971955,
0.0405944}, {0.973955, 0.0405944}, {0.975955, 0.0405944}, {0.942928,
0.0501072}, {0.944928, 0.0501072}, {0.946928, 0.0501072}, {0.948928,
0.0501072}, {0.950928, 0.0501072}, {0.952928, 0.0501072}, {0.954928,
0.0501072}, {0.956928, 0.0501072}, {0.958928, 0.0501072}, {0.960928,
0.0501072}, {0.962928, 0.0501072}, {0.964928, 0.0501072}, {0.966928,
0.0501072}, {0.968928, 0.0501072}, {0.970928, 0.0501072}, {0.972928,
0.0501072}, {0.974928, 0.0501072}, {0.944116, 0.0601409}, {0.946116,
0.0601409}, {0.948116, 0.0601409}, {0.950116, 0.0601409}, {0.952116,
0.0601409}, {0.954116, 0.0601409}, {0.956116, 0.0601409}, {0.958116,
0.0601409}, {0.960116, 0.0601409}, {0.962116, 0.0601409}, {0.964116,
0.0601409}, {0.966116, 0.0601409}, {0.968116, 0.0601409}, {0.970116,
0.0601409}, {0.972116, 0.0601409}, {0.974116, 0.0601409}, {0.945435,
0.0700827}, {0.947435, 0.0700827}, {0.949435, 0.0700827}, {0.951435,
0.0700827}, {0.953435, 0.0700827}, {0.955435, 0.0700827}, {0.957435,
0.0700827}, {0.959435, 0.0700827}, {0.961435, 0.0700827}, {0.963435,
0.0700827}, {0.965435, 0.0700827}, {0.967435, 0.0700827}, {0.969435,
0.0700827}, {0.971435, 0.0700827}, {0.973435, 0.0700827}, {0.946999,
0.080193}, {0.948999, 0.080193}, {0.950999, 0.080193}, {0.952999,
0.080193}, {0.954999, 0.080193}, {0.956999, 0.080193}, {0.958999,
0.080193}, {0.960999, 0.080193}, {0.962999, 0.080193}, {0.964999,
0.080193}, {0.966999, 0.080193}, {0.968999, 0.080193}, {0.970999,
0.080193}, {0.972999, 0.080193}, {0.948598, 0.0901655}, {0.950598,
0.0901655}, {0.952598, 0.0901655}, {0.954598, 0.0901655}, {0.956598,
0.0901655}, {0.958598, 0.0901655}, {0.960598, 0.0901655}, {0.962598,
0.0901655}, {0.964598, 0.0901655}, {0.966598, 0.0901655}, {0.968598,
0.0901655}, {0.970598, 0.0901655}, {0.972598, 0.0901655}, {0.950525,
0.100567}, {0.952525, 0.100567}, {0.954525, 0.100567}, {0.956525,
0.100567}, {0.958525, 0.100567}, {0.960525, 0.100567}, {0.962525,
0.100567}, {0.964525, 0.100567}, {0.966525, 0.100567}, {0.968525,
0.100567}, {0.970525, 0.100567}, {0.972525, 0.100567}, {0.952756,
0.110294}, {0.954756, 0.110294}, {0.956756, 0.110294}, {0.958756,
0.110294}, {0.960756, 0.110294}, {0.962756, 0.110294}, {0.964756,
0.110294}, {0.966756, 0.110294}, {0.968756, 0.110294}, {0.970756,
0.110294}, {0.955088, 0.120251}, {0.957088, 0.120251}, {0.959088,
0.120251}, {0.961088, 0.120251}, {0.963088, 0.120251}, {0.965088,
0.120251}, {0.967088, 0.120251}, {0.969088, 0.120251}, {0.958639,
0.130024}, {0.960639, 0.130024}, {0.962639, 0.130024}, {0.964639,
0.130024}, {0.966639, 0.130024}, {0.968639, 0.130024}, {0.964756,
0.136075}, {0.964743, 0.136075}, {0.939431, 0.000168501}, {0.941431,
0.000168501}, {0.943431, 0.000168501}, {0.945431, 0.000168501},
{0.947431,
0.000168501}, {0.949431, 0.000168501}, {0.951431,
0.000168501}, {0.953431, 0.000168501}, {0.955431, 0.000168501},
{0.957431,
0.000168501}, {0.959431, 0.000168501}, {0.961431,
0.000168501}, {0.963431, 0.000168501}, {0.965431, 0.000168501},
{0.967431,
0.000168501}, {0.969431, 0.000168501}, {0.971431,
0.000168501}, {0.973431, 0.000168501}, {0.975431, 0.000168501},
{0.977431,
0.000168501}, {0.939646, 0.0050858}, {0.940646, 0.0050858}, {0.941646,
0.0050858}, {0.942646, 0.0050858}, {0.943646, 0.0050858}, {0.944646,
0.0050858}, {0.945646, 0.0050858}, {0.946646, 0.0050858}, {0.947646,
0.0050858}, {0.948646, 0.0050858}, {0.949646, 0.0050858}, {0.950646,
0.0050858}, {0.951646, 0.0050858}, {0.952646, 0.0050858}, {0.953646,
0.0050858}, {0.954646, 0.0050858}, {0.955646, 0.0050858}, {0.956646,
0.0050858}, {0.957646, 0.0050858}, {0.958646, 0.0050858}, {0.959646,
0.0050858}, {0.960646, 0.0050858}, {0.961646, 0.0050858}, {0.962646,
0.0050858}, {0.963646, 0.0050858}, {0.964646, 0.0050858}, {0.965646,
0.0050858}, {0.966646, 0.0050858}, {0.967646, 0.0050858}, {0.968646,
0.0050858}, {0.969646, 0.0050858}, {0.970646, 0.0050858}, {0.971646,
0.0050858}, {0.972646, 0.0050858}, {0.973646, 0.0050858}, {0.974646,
0.0050858}, {0.975646, 0.0050858}, {0.976646, 0.0050858}};

Needs["ComputationalGeometry`"]

ch = ConvexHull[data];

Graphics[{
LightBlue, Polygon[data[[ch]]],
Red, AbsolutePointSize[3], Point[data]},
AspectRatio -> 1/GoldenRatio, Frame -> True]

ListLinePlot[data[[Append[ch, ch[[1]]]]],
PlotStyle -> Directive[Blue, Thick],
Frame -> True, Axes -> False,
Epilog -> {Red, AbsolutePointSize[3], Point[data]}]

Bob Hanlon

On Wed, Jul 17, 2013 at 1:49 AM, <ommair@uok.edu.pk> wrote:

> As shown in an image there are many data points in a region and these
> points are in the form of {{x1,y1},{x2,y2},{x3,y3},{x4,y4}......} and
> assume z=0 for all data. I want to construct a whole continuous region from
> these points i.e wants to cover the area between points with proper
> boundary of the region. Like for example we can draw a curve from data
> points using interpolation cant we construct a continuous region or plane
> from data points in my image. Or suggest me any other method from which I
> can get continuous region from my data.
>
> data= {{0.939922, 0.0109069}, {0.941922, 0.0109069}, {0.943922,
> 0.0109069}, {0.945922, 0.0109069}, {0.947922, 0.0109069}, {0.949922,
> 0.0109069}, {0.951922, 0.0109069}, {0.953922, 0.0109069}, {0.955922,
> 0.0109069}, {0.957922, 0.0109069}, {0.959922, 0.0109069}, {0.961922,
> 0.0109069}, {0.963922, 0.0109069}, {0.965922, 0.0109069}, {0.967922,
> 0.0109069}, {0.969922, 0.0109069}, {0.971922, 0.0109069}, {0.973922,
> 0.0109069}, {0.975922, 0.0109069}, {0.940468, 0.0201746}, {0.942468,
> 0.0201746}, {0.944468, 0.0201746}, {0.946468,0.0201746}, {0.948468,
> 0.0201746}, {0.950468, 0.0201746}, {0.952468, 0.0201746}, {0.954468,
> 0.0201746}, {0.956468, 0.0201746}, {0.958468, 0.0201746},{0.960468,
> 0.0201746}, {0.962468, 0.0201746}, {0.964468, 0.0201746}, {0.966468,
> 0.0201746}, {0.968468, 0.0201746}, {0.970468, 0.0201746}, {0.972468,
> 0.0201746}, {0.974468, 0.0201746}, {0.976468, 0.0201746}, {0.941062,
> 0.0304687}, {0.943062, 0.0304687}, {0.945062, 0.0304687}, {0.947062,
> 0.0304687}, {0.949062, 0.0304687}, {0.9
> 51062, 0.0304687}, {0.953062, 0.0304687}, {0.955062, 0.0304687},
> {0.957062, 0.0304687}, {0.959062, 0.0304687}, {0.961062, 0.0304687},
> {0.963062, 0.0304687}, {0.965062, 0.0304687}, {0.967062, 0.0304687},
> {0.969062, 0.0304687}, {0.971062, 0.0304687}, {0.973062, 0.0304687},
> {0.975062, 0.0304687}, {0.941955, 0.0405944}, {0.943955, 0.0405944},
> {0.945955, 0.0405944}, {0.947955, 0.0405944}, {0.949955, 0.0405944},
> {0.951955, 0.0405944}, {0.953955, 0.0405944}, {0.955955, 0.0405944},
> {0.957955, 0.0405944}, {0.959955, 0.0405944}, {0.961955, 0.0405944},
> {0.963955, 0.0405944}, {0.965955, 0.0405944}, {0.967955, 0.0405944},
> {0.969955, 0.0405944}, {0.971955, 0.0405944}, {0.973955, 0.0405944},
> {0.975955, 0.0405944}, {0.942928, 0.0501072}, {0.944928, 0.0501072},
> {0.946928, 0.0501072}, {0.948928, 0.0501072}, {0.950928, 0.0501072},
> {0.952928, 0.0501072}, {0.954928, 0.0501072}, {0.956928, 0.0501072},
> {0.958928, 0.0501072}, {0.960928, 0.0501072}, {0.962928, 0.0501072},
> {0.964928, 0.0501072}, {0.966928, 0
> .0501072}, {0.968928, 0.0501072}, {0.970928, 0.0501072}, {0.972928,
> 0.0501072}, {0.974928, 0.0501072}, {0.944116, 0.0601409}, {0.946116,
> 0.0601409}, {0.948116, 0.0601409}, {0.950116, 0.0601409}, {0.952116,
> 0.0601409}, {0.954116, 0.0601409}, {0.956116, 0.0601409}, {0.958116,
> 0.0601409}, {0.960116, 0.0601409}, {0.962116, 0.0601409}, {0.964116,
> 0.0601409}, {0.966116, 0.0601409}, {0.968116, 0.0601409},{0.970116,
> 0.0601409}, {0.972116, 0.0601409}, {0.974116, 0.0601409}, {0.945435,
> 0.0700827}, {0.947435, 0.0700827}, {0.949435, 0.0700827}, {0.951435,
> 0.0700827}, {0.953435, 0.0700827}, {0.955435, 0.0700827}, {0.957435,
> 0.0700827}, {0.959435, 0.0700827}, {0.961435, 0.0700827}, {0.963435,
> 0.0700827}, {0.965435, 0.0700827}, {0.967435, 0.0700827}, {0.969435,
> 0.0700827}, {0.971435, 0.0700827}, {0.973435, 0.0700827}, {0.946999,
> 0.080193}, {0.948999, 0.080193}, {0.950999, 0.080193}, {0.952999,
> 0.080193}, {0.954999, 0.080193}, {0.956999, 0.080193}, {0.958999,
> 0.080193}, {0.960999, 0.080193}, {0.962
> 999, 0.080193}, {0.964999, 0.080193}, {0.966999, 0.080193}, {0.968999,
> 0.080193}, {0.970999, 0.080193}, {0.972999, 0.080193}, {0.948598,
> 0.0901655}, {0.950598, 0.0901655}, {0.952598, 0.0901655}, {0.954598,
> 0.0901655}, {0.956598, 0.0901655}, {0.958598, 0.0901655}, {0.960598,
> 0.0901655}, {0.962598, 0.0901655}, {0.964598, 0.0901655}, {0.966598,
> 0.0901655}, {0.968598, 0.0901655},{0.970598, 0.0901655}, {0.972598,
> 0.0901655}, {0.950525, 0.100567}, {0.952525, 0.100567}, {0.954525,
> 0.100567}, {0.956525, 0.100567}, {0.958525, 0.100567}, {0.960525,
> 0.100567}, {0.962525, 0.100567}, {0.964525, 0.100567}, {0.966525,
> 0.100567}, {0.968525, 0.100567}, {0.970525, 0.100567}, {0.972525,
> 0.100567}, {0.952756, 0.110294}, {0.954756, 0.110294}, {0.956756,
> 0.110294}, {0.958756, 0.110294}, {0.960756, 0.110294}, {0.962756,
> 0.110294}, {0.964756, 0.110294}, {0.966756, 0.110294}, {0.968756,
> 0.110294}, {0.970756, 0.110294}, {0.955088, 0.120251}, {0.957088,
> 0.120251}, {0.959088, 0.120251}, {0.961088, 0.120251}, {
> 0.963088, 0.120251}, {0.965088, 0.120251}, {0.967088, 0
> .120251}, {0.969088, 0.120251}, {0.958639, 0.130024}, {0.960639,
> 0.130024},=
> {0.962639, 0.130024}, {0.964639, 0.130024}, {0.966639, 0.130024},
> {0.96863=
> 9, 0.130024}, {0.964756, 0.136075}, {0.964743, 0.136075}, {0.939431,
> 0.0001=
> 68501}, {0.941431, 0.000168501}, {0.943431, 0.000168501}, {0.945431,
> 0.0001=
> 68501}, {0.947431, 0.000168501}, {0.949431, 0.000168501}, {0.951431,
> 0.0001=
> 68501}, {0.953431, 0.000168501}, {0.955431, 0.000168501}, {0.957431,
> 0.0001=
> 68501}, {0.959431, 0.000168501}, {0.961431, 0.000168501}, {0.963431,
> 0.0001=
> 68501}, {0.965431, 0.000168501}, {0.967431, 0.000168501}, {0.969431,
> 0.0001=
> 68501}, {0.971431, 0.000168501}, {0.973431, 0.000168501}, {0.975431,
> 0.0001=
> 68501}, {0.977431, 0.000168501}, {0.939646, 0.0050858}, {0.940646,
> 0.005085=
> 8}, {0.941646, 0.0050858}, {0.942646, 0.0050858}, {0.943646, 0.0050858},
> {0=
> .944646, 0.0050858}, {0.945646, 0.0050858}, {0.946646, 0.0050858},
> {0.94764=
> 6, 0.0050858}, {0.948646, 0.0050858}, {0.949646, 0.0050858}, {0.950646,
> 0.0=
> 050858}, {0.951646, 0.0050858}, {0.952646, 0.0050858}, {0.953646,
> 0.0050858=
> }, {0.954646, 0.0050858}, {0.955646, 0.0050858}, {0.956646, 0.0050858},
> {0.=
> 957646, 0.0050858}, {0.958646, 0.0050858}, {0.959646, 0.0050858},
> {0.960646=
> , 0.0050858}, {0.961646, 0.0050858}, {0.962646, 0.0050858}, {0.963646,
> 0.00=
> 50858}, {0.964646, 0.0050858}, {0.965646, 0.0050858}, {0.966646,
> 0.0050858}=
> , {0.967646, 0.0050858}, {0.968646, 0.0050858}, {0.969646, 0.0050858},
> {0.9=
> 70646, 0.0050858}, {0.971646, 0.0050858}, {0.972646, 0.0050858},
> {0.973646,=
> 0.0050858}, {0.974646, 0.0050858}, {0.975646, 0.0050858}, {0.976646,
> 0.005=
> 0858}}
>
>

Date Subject Author
7/18/13 Bob Hanlon
7/20/13 ommair@uok.edu.pk
7/18/13 Sseziwa Mukasa
7/21/13 Bob Hanlon