Re: Graphics3D polygon face colors
- To: mathgroup at smc.vnet.net
- Subject: [mg65143] Re: Graphics3D polygon face colors
- From: Maxim <m.r at inbox.ru>
- Date: Wed, 15 Mar 2006 06:30:34 -0500 (EST)
- References: <duud8q$hrs$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
On Sat, 11 Mar 2006 11:45:30 +0000 (UTC), AJ Friend <ajfriend at gatech.edu>
wrote:
> Hi,
>
> If I display a polygon in 3 space with Graphics3D and the faces are
> colored by the default light sources, does anyone know how to get the
> rbg values for the face colors?
>
>
> Thanks,
> AJ Friend
>
Graphics[Graphics3D[...]] converts a 3D scene to 2D:
In[1]:= Graphics[Graphics3D[
Polygon[{{0, 0, 0}, {1, 0, 0}, {1, 1, 1}}]]] //
Cases[#, _RGBColor, -1]&
Out[1]= {RGBColor[0.62558977, 0.5481437, 0.74727384]}
Maxim Rytin
m.r at inbox.ru