losbellos
03-05-2009, 08:45 AM
Hello,
I am working on some tool, and I would like to implement some basic drawing of perpendicualar splines from an other spline segment, and the lenght updated by the position of the mouse.
I managed the basic code, but Idont know how sould I solve the problem, that I have to continuosly check the mouse postion and draw the new perpendicual spline, without any event change except the mouse moves.
If I use for or while cycle the spline doesnt show up only when the function finishes.
so here is the code structure.
function startpos ()
function drawline (
for (
--get the new point
-- draw
)
)
function base (
-- get selected spline segment
call drawline()
)
getlocation = pickPoint mouseMoveCallback:#(startpos ,startpoint)
call base()
I am working on some tool, and I would like to implement some basic drawing of perpendicualar splines from an other spline segment, and the lenght updated by the position of the mouse.
I managed the basic code, but Idont know how sould I solve the problem, that I have to continuosly check the mouse postion and draw the new perpendicual spline, without any event change except the mouse moves.
If I use for or while cycle the spline doesnt show up only when the function finishes.
so here is the code structure.
function startpos ()
function drawline (
for (
--get the new point
-- draw
)
)
function base (
-- get selected spline segment
call drawline()
)
getlocation = pickPoint mouseMoveCallback:#(startpos ,startpoint)
call base()
