View Single Post
  #6  
Old 03-01-2005, 08:12 AM
Johannes Johannes is offline
Member
 
Join Date: Jan 2005
Posts: 143
Just thought I poste the code of the "point-finder" in case somebody else likes to use it:
Code:
def mouseclick(button):
	if button == viz.MOUSEBUTTON_MIDDLE:
		print 'middle'
		line = viz.screentoworld(viz.mousepos())
		begin = line[:3]
		end = line[3:]
		#viz.startlayer(viz.LINE_LOOP)
		#viz.vertex(begin)
		#viz.vertex(end)
		#line0503 = viz.endlayer()
		
		info = table.intersect(begin,end)
		if info.intersected:
			print 'p1:',info.intersectPoint
Reply With Quote