Draw Line between Points
Hi,
I want to create a line between two points. The first point at the mouseDown Position and the second point at the mouseUp Position. Between these two points I want to draw a line. This works very fine. But now I want to show the line, before the mouseUp Event. So that I push down the mousebutton, move it at another position and can already see the line, although the mousebutton is pushed. The line would change as long as I push the mousebutton. Is this possible? Thanks in advance... |
Yes, this is definitely possible. Here is a sample script that uses the viztask module to draw lines with the mouse:
Code:
import viz |
Hi,
thanks a lot! And how can I stop the schedule, so I'm able to draw only two lines and no more?? Is there a possibility to save the separate positions of all these four vertex? |
All times are GMT -7. The time now is 06:49 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC