I have a collection of lines ordered by pairs of points, as below, and wish to get a MeshRegion
from them, with the mesh edges being the given lines. (That is, the 2-dimensional mesh should be composed of the polygons shown below, with the big space inside taken out.)
Now, I don't want to write explicitly the points and mesh primitive cells because it's too large. Is there a direct way to do it ?
data={{{0.968246, -0.25}, {0.866025, -0.5}}, {{0.968246, -0.25}, {1., 0.}}, {{0.968246, -0.25}, {0.968246, -0.25}}, ... };
Graphics[{Green, Line[data]}]
(complete data set downloadable here or below)
{{{0.968246, -0.25}, {0.866025, -0.5}}, {{0.968246, -0.25}, {1.,0.}},
{{0.866025, -0.5}, {0.75, -0.661438}}, {{0.75, -0.661438}, \
{0.661438, -0.75}}, {{0.661438, -0.75}, {0.5, -0.866025}}, {{0.5, \
-0.866025}, {0.25, -0.968246}}, {{0.25, -0.968246}, {0., -1.}},
{{0., \
-1.}, {-0.25, -0.968246}}, {{-0.25, -0.968246}, {-0.5, -0.866025}}, \
{{-0.5, -0.866025}, {-0.661438, -0.75}}, {{-0.661438, -0.75}, {-0.75, \
-0.661438}}, {{-0.75, -0.661438}, {-0.866025, -0.5}}, {{-0.866025, \
-0.5}, {-0.968246, -0.25}}, {{-0.968246, -0.25}, {-1., 0.}}, {{-1.,
0.}, {-0.968246, 0.25}}, {{-0.968246, 0.25}, {-0.866025,
0.5}}, {{-0.866025, 0.5}, {-0.75, 0.661438}}, {{-0.75,
0.661438}, {-0.661438, 0.75}}, {{-0.661438, 0.75}, {-0.5,
0.866025}}, {{-0.5, 0.866025}, {-0.25, 0.968246}}, {{-0.25,
0.968246}, {0., 1.}}, {{0., 1.}, {0.25, 0.968246}}, {{0.25,
0.968246}, {0.5, 0.866025}}, {{0.5, 0.866025}, {0.661438,
0.75}}, {{0.661438, 0.75}, {0.75, 0.661438}}, {{0.75,
0.661438}, {0.866025, 0.5}}, {{0.866025, 0.5}, {0.968246,
0.25}}, {{0.968246, 0.25}, {1.,
0.}}, {{-0.75, -0.5}, {-0.5, -0.5}}, {{-0.75, -0.5}, {-0.75, \
-0.25}}, {{-0.75, -0.5}, {-0.75, -0.661438}}, {{-0.75, -0.5}, \
{-0.866025, -0.5}}, {{-0.5, -0.5}, {-0.5, -0.75}}, {{-0.5, -0.75}, \
{-0.25, -0.75}}, {{-0.5, -0.75}, {-0.5, -0.866025}}, {{-0.5, -0.75}, \
{-0.661438, -0.75}}, {{-0.25, -0.75}, {0., -0.75}}, {{-0.25, -0.75}, \
{-0.25, -0.968246}}, {{0., -0.75}, {0.25, -0.75}}, {{0., -0.75}, {0., \
-1.}}, {{0.25, -0.75}, {0.5, -0.75}}, {{0.25, -0.75}, {0.25, \
-0.968246}}, {{0.5, -0.75}, {0.5, -0.5}}, {{0.5, -0.75}, {0.661438, \
-0.75}}, {{0.5, -0.75}, {0.5, -0.866025}}, {{0.5, -0.5}, {0.75, \
-0.5}}, {{0.75, -0.5}, {0.75, -0.25}}, {{0.75, -0.5}, {0.866025, \
-0.5}}, {{0.75, -0.5}, {0.75, -0.661438}}, {{0.75, -0.25}, {0.75,
0.}}, {{0.75, -0.25}, {0.968246, -0.25}}, {{0.75, 0.}, {0.75,
0.25}}, {{0.75, 0.}, {1., 0.}}, {{0.75, 0.25}, {0.75,
0.5}}, {{0.75, 0.25}, {0.968246, 0.25}}, {{0.75, 0.5}, {0.5,
0.5}}, {{0.75, 0.5}, {0.75, 0.661438}}, {{0.75, 0.5}, {0.866025,
0.5}}, {{0.5, 0.5}, {0.5, 0.75}}, {{0.5, 0.75}, {0.25,
0.75}}, {{0.5, 0.75}, {0.5, 0.866025}}, {{0.5, 0.75}, {0.661438,
0.75}}, {{0.25, 0.75}, {0., 0.75}}, {{0.25, 0.75}, {0.25,
0.968246}}, {{0., 0.75}, {-0.25, 0.75}}, {{0., 0.75}, {0.,
1.}}, {{-0.25, 0.75}, {-0.5, 0.75}}, {{-0.25, 0.75}, {-0.25,
0.968246}}, {{-0.5, 0.75}, {-0.5, 0.5}}, {{-0.5, 0.75}, {-0.661438,
0.75}}, {{-0.5, 0.75}, {-0.5, 0.866025}}, {{-0.5, 0.5}, {-0.75,
0.5}}, {{-0.75, 0.5}, {-0.75, 0.25}}, {{-0.75, 0.5}, {-0.866025,
0.5}}, {{-0.75, 0.5}, {-0.75, 0.661438}}, {{-0.75, 0.25}, {-0.75,
0.}}, {{-0.75, 0.25}, {-0.968246, 0.25}}, {{-0.75,
0.}, {-0.75, -0.25}}, {{-0.75, 0.}, {-1.,
0.}}, {{-0.75, -0.25}, {-0.968246, -0.25}}}
data
as a list? Thanks! $\endgroup$