i’m using this eample using admesh
now in this script there are 2 list defined one for the verticies and one for the faces
so why is there no edges list ?
because in the new script i want to do i would like to have an option to do only edges and no faces !
and to do that ?
Thanks
IanC
(IanC)
2
so why is there no edges list ?
There is, if
me.faces
is the list of faces, then
me.edges
is the list of edges.
http://www.blender.org/documentation/248PythonDoc/Mesh.Mesh-class.html
If you’re adding a lot to any list, don’t iterate through and do append on each item.
# instead of
for item in listOfVerts:
me.verts.append(item)
# do
me.verts.extend(listOfVerts)
ok i’v seen examples with the me… mesh object with verticies edge and faces
but with the addmesh - seems to be different a way of doing things
Name: 'Cardioid / '
Blender: 2.48a
Group: 'AddMesh'
"""
import BPyAddMesh
import Blender
from math import sqrt, sin, cos, pi
def add_cardioid(segments,rings,radius,height):
# Equation = r = 1 +cos(o) 0 < angle , 2 pi
v=[]
f=[]
#Creating the verticies
dtd=5 # DELTA DEGREES
dtr=dtd*pi/180
pr=1.6
z=0
amax=70*pi/180
rm1=0
in this example the verticies list is v[ ] and faces one is f[ ]
how would the edges list be defined ?
i mean there is not me. mesh object per say here !
i tried to find some good doc on this new addmesh module i guess
but could not find anything on this in python!
Thanks