Re: 3d surface plot animation

Bruce Sherwood <[email protected]>
Newsgroups gmane.comp.python.visualpython.user
Message-ID <CAFDG03h8LcFVO6-TJXwXBwFYB4domO=C6MMMEcqZ6fKdgpkdKA@mail.gmail.com>
I'm not sure what it is that you're asking about colors. Here is the
key part of the documenation on the faces object:

You can append additional vertices to an existing faces object with
one of the following four forms (assuming the object is named f):

f.append(pos=(x,y,z))
f.append(pos=(x,y,z), normal=(nx,ny,nz))
f.append(pos=(x,y,z), normal=(nx,ny,nz), color=(r,g,b))
f.append(pos=(x,y,z), normal=(nx,ny,nz),
     red=r, green=g, blue=b)

Another convenient way to construct a faces object is to create a list
or numpy array of positions, then create the faces object with the pos
attribute set to the list or array. Then use make_normals(),
make_twosided(), and smooth() to complete the task.

On Fri, Oct 14, 2011 at 1:13 PM, Poul Riis <Poul.Riis-pIBpe43/vk1knbxzx/[email protected]> wrote:
> [email protected] writes:
> Also note that the
> faces object lets you specify the colors of all vertices individually.
> Yes, I know, but even the original example 'faces_heightfield' is too
> complicated for me to see how I can add these colors. Can someone give me
> just a little hint?
> Poul Riis

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.