Re: Why does "Normal" not create a list of line graphics
- To: mathgroup at smc.vnet.net
- Subject: [mg113982] Re: Why does "Normal" not create a list of line graphics
- From: Fred Klingener <gigabitbucket at BrockEng.com>
- Date: Sat, 20 Nov 2010 06:10:10 -0500 (EST)
- References: <ic5opt$71n$1@smc.vnet.net>
On Nov 19, 6:58 am, Oliver Ruebenkoenig <ruebe... at wolfram.com> wrote:
> On Fri, 19 Nov 2010, arw235 wrote:
> > Can anyone suggest why the behavior is different in each of the
> > following:
>
> > This doesn't work:
>
> > In[95]:= v = {{{1, 0}, {0, 1}}, {{-1, 0}, {0, -1}}};
> > Normal[GraphicsComplex[v, Line[{1, 2}]]]
>
> This is not a valid GraphicsComplex.
>
> ?GraphicsComplex
The reason it's not a valid GraphicsComplex is in the Depth of v.
You can see how to make your node list form work by comparing:
v={{{1,0},{0,1}},{{-1,0},{0,-1}}};
Normal[
GraphicsComplex[
v
, Line[{1, 2}]
]
]
Normal[
GraphicsComplex[
Flatten[v, 1]
, Line[{1, 2}]
]
]
Hth,
Fred Klingener