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