|
From: Bruce S. <Bru...@nc...> - 2011-10-14 19:51:02
|
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 <Pou...@sk...> wrote:
> Bru...@nc... 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
|