Hi,
I am a beginner with python,and have this assignment that buggs me for some while..hope smb can help me...now, the thing is that I have merged the lists of view point positions of the camera in an function:
mergeList=list()
def linear_merge(list1, list2):
mergelList = []
for item in list1:
mergelList.extend(item)
for item in list2:
mergelList.extend(item)
return mergeList
and called the function in the body
merged = linear_merge(mergeProjectedPoints,projectedPoints)
where in loop
p = [_3dImage[i,j][0]*-1,_3dImage[i,j][1],_3dImage[i,j][2], 1] #camera coordinates
pp = matrix.MultiplyPoint(p) #world coordinates
mypoints.InsertNextPoint([_3dImage[i,j][0]*-1,_3dImage[i,j][1],_3dImage[i,j][2]])
a = conn.InsertNextCell(1)
projectedPoints.append([pp[0],pp[2]]))
...but how to access those same points in merged list (cuz I want to use them and display them on screen later in the code)...loop?how?