Sine Curve (wave) script?
-
Thank you Bob, for the clarification.
Regards, John
-
Just a couple of notes to add to the other Bob's last post.
- You can use PI in K2 Graphs formulae (saves having to type in 3.14159)
- K2 Graphs appears to use meters as a default unit. However the dimensions will show up in whatever units you have set to display. In Bob's case this seems to be millimeters, hence the need to correct by 1000. The scale factor to correct from meters to feet is .3048
Bob
-
From one Bob to another,
Oops! Should have figured that out. Must be getting slow.
Regards,
Bob -
@jclements said:
Thanks, all!
Jim, about the code you posted.
Is that a snippet from a Ruby script and can it be run from the Ruby console window? Or, could a Sine Script be written that asks user for unit of measure, length and amplitude and maybe the number segments?
John
John,
If you still want it, I can write it up.
-
Jim, yes please. I am sure to use it.
-
Pathcopy.rb has a feature that allows you to copy to spacing http://www.smustard.com/script/PathCopy. So if you rather have a nice-looking, higher-poly curve and space components by a set distance along the curve, it seems possible.
-
Hi Gata.
I do use the copy along path script and it works nicely. But the trick here is to space (subdivided) equi-distant if you will, along an existing curve. The functions that Fred06 has provided are flexible enough to aid in doing this, plus, re-manipulate/smooth some complex curves.
-
@jclements said:
Thanks, all!
Jim, about the code you posted.
Is that a snippet from a Ruby script and can it be run from the Ruby console window? Or, could a Sine Script be written that asks user for unit of measure, length and amplitude and maybe the number segments?
John
John,
-
Thank you, Jim!
It works beautifully.
Regards, John
-
I have updated the script to make it remember values between calls.
Advertisement