how to make faces

i’m using the command f.append([1,3,2,4])

are the number representing the verticies number
andnis there a way to follow the vertex to make faces?

any doc on this ?

i trid to make a tri face with f.append([0,1,2,0])
but it’s not working why ?

Thanks

are the number representing the verticies number

Yes.

any doc on this ?

I’m not quite sure what it is you want, but have you tried the API?
http://www.blender.org/documentation/248PythonDoc/API_intro-module.html

This defines how things work :slight_smile:

i trid to make a tri face with f.append([0,1,2,0])
but it’s not working why ?

Assuming that f is the correct list, then just use 3 verts for a tri. There is an example here:
http://www.blender.org/documentation/248PythonDoc/Mesh-module.html


# define vertices and faces for a pyramid
coords=[ [-1,-1,-1], [1,-1,-1], [1,1,-1], [-1,1,-1], [0,0,1] ]  
faces= [ [3,2,1,0], [0,1,4], [1,2,4], [2,3,4], [3,0,4] ]