PDA

View Full Version : GeoFrac2D - with auto REsize and iteration level / angle animation



RobbeK
07-12-2013, 21:01
Oops, previous post went berserk ....

I the meantime, working a little on the 2D stuff.
(attached)
Added "base" : can be line or any polygon (open or closed) now.
# it is the number of iterations
# An the number of changes during the Anim A action.
Step the increase of angle/step.
Added Notepad to save, copy, paste , comment some things in case.

Sometimes , the program hangs for a while till the end is reached -- (?).
Will be recoded for TBGL soon.

(the interesting part is |Anim A| - hope it will reach a 3D version --- )
--- for a complete cycle : add 360 #An and 1 for step etc ....


best Rob

mike lobanovsky
08-12-2013, 03:28
Hi Rob,

Looks very nice and StarT works perfect for me now! :)

However, your initial base "m 90 m 90 m 90 m" doesn't close the contour (see at iteration # = 1). Should be "m 90 m 90 m 90 m 90 m" for static plotting. Animation seems to break the contour whatever it is. Can anything be changed dynamically to keep it closed in the process? But this may slow down the animation... I guess the entire matrix can also be precalculated if the final countour for the animation is known (preset). Then static plotting won't suffer as the base's extra members will simply overpaint each other, which is visually undetectable.

Now out of the frying pan into the fire: pressing the "Note book" button while the animation is running hangs the application...


Regards,

RobbeK
08-12-2013, 13:44
Thanks Mike,

I forgot to include the (0,0) into the matrix,

Set up a flag preventing multiple actions.



best Rob

RobbeK
08-12-2013, 13:57
Better initial values -- a complete cycle 0°->360°

mike lobanovsky
08-12-2013, 16:34
Very spectacular, Rob, thanks!

Clicking "Note book" doesn't freeze the app now; the button seems unresponsive during animation but actually spawns Notepad after the process is over. Don't you think it'd be more natural to disable it completely while animating the picture?

RobbeK
09-12-2013, 00:05
Good idea, Mike !

(btw the angle animation is done on the "base" , not on the formula -- it becomes rapidly chaotic )


best Rob

mike lobanovsky
09-12-2013, 13:26
Very nice Rob, thanks a lot! :)