Sine wave between points
All  1-6  7-9

Previous
Next
 From:  bemfarmer
5043.7 
Hi Ditto,

Where are the two points located? Somewhere in 3D space, with x,y,z coordinates?

Or are the two points located in say the xy plane, or xz plane, or yz plane?

Which orientation should the sine wave amplitude point?
The direction of the (+) amplitude would be perpendicular to a line between the two points, and point in any 360 degree direction...

There would be a half wavelength, full wavelength, or some integer multiple, and negative mirror images...

The recent catenary2PtXYZ script hangs a catenary between two user selected points, but maintains the
y-axis for gravity.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
5043.8 
Hi Ditto,

Made a couple of trivial changes to Michaels Sinewave script.

1. Changed the PI multiplier for the y coordinate from 2.0 to 1.0.

2. Removed the "* numcycles" multiplier from the x coordinate.

Number 3 does not change what the revised script does, just lets the user decide upon the
number of Half sine cycles. The input is the integer number of half cycles.

3. Changed the label numcycles to numHalfcycles. Left the variable numcycles alone, because
the more changes, the more goofups. numcycles now holds the number of HALF sine waves.
It should be renamed numHalfcycles to be technically correct...

Making the amplitude negative, mirrors the sine wave with a negative start.

A slider could be added to numHalfcycles...don't really see the point. The view just becomes a "fringe" with
large values of numHalfcycles.




  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Ditto
5043.9 In reply to 5043.8 
Ben,

You hit the nail on its head! Thanks much! That is (mostly) what I am after, but I can work around that.

Having both points on the same plane is no problem. I will copy and rotate the sine later on.

The sliders would make the script a bit easier to handle, because I don't know in advance how many half-cycles at what amplitude I want, I change the values and look at the result until I am happy. A slider would be more direct: Instead of clearing the field, entering a number, hitting enter, simply dragging a slider or pushing Up/Down arrows would be more natural.

But again, thank you very much! Having the sine like that will allow me to continue.

Ditto
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1-6  7-9