sine wave script 1-20  21-34

 From: TOM (SIRTOM) 23 Feb 2016  (1 of 34)
 Hi, Is there an easy way to generate a circle with a sine wave profile (would look like a cogwheel with rounded edges ) ? EDITED: 23 Feb 2016 by SIRTOM

 From: Karsten (KMRQUS) 23 Feb 2016  (2 of 34)
 7861.2 In reply to 7861.1 Hello Tom, make a simple straight sinewave with some of the scripts here in the forum e.g http://moi3d.com/forum/index.php?webtag=MOI&msg=6447.1 draw a line and flow the wave to a circle:-) Have a nice day Karsten

 From: Michael Gibson 23 Feb 2016  (3 of 34)
 7861.3 In reply to 7861.1 Hi Tom, there's also another Sine wave script here for building the base shape: http://moi3d.com/forum/messages.php?webtag=MOI&msg=1519.38 Then like Karsten says you'd use Transform > Deform > Flow to warp it into a circle. Draw a base line for the Flow right down the middle of the straight sine way from end to end, and draw a circle for the target curve. Then select the sine wave curve, run Transform > Deform > Flow then at the first prompt that says to select the base curve click on the line, and at the next prompt for the target shape select the circle. - Michael

 From: bemfarmer 23 Feb 2016  (4 of 34)
 7861.4 In reply to 7861.1 Hi Tom A google of "circular sine wave equation" shows a 2d formula here: http://math.stackexchange.com/questions/225351/equation-of-sine-wave-around-a-circle/867311 I believe the wavespring script could be easily modified to do this. No time right now. I'll probably look at it again tonight. - Brian

 From: bemfarmer 23 Feb 2016  (5 of 34)
 7861.5 In reply to 7861.4 The modified script worked fine. Did not do any sliders. I'll post it tomorrow. - Brian EDITED: 24 Feb 2016 by BEMFARMER

 From: bemfarmer 24 Feb 2016  (6 of 34)
 7861.6 In reply to 7861.5 Uploaded from droid cellphone. This script will also do the circular sine wave on the z axis, formerly called "wavespring script." - Brian I've still a lot to learn about mobile devices. There are apps to view "shaded" .3dm files, based upon the Rhino spec. EDITED: 24 Feb 2016 by BEMFARMER Attachments:

 From: Michael Gibson 24 Feb 2016  (7 of 34)
 7861.7 In reply to 7861.6 Hi Brian, re: > There are apps to view "shaded" .3dm files, based upon the Rhino spec. When it says shaded like that, it probably means that it only show any of Rhino's cached display mesh information in the file and so it will only work with 3DM files coming from Rhino, and even then only if the file has been shaded in Rhino before it was saved and not saved using "Save small" from Rhino either. - Michael

 From: bemfarmer 24 Feb 2016  (8 of 34)
 7861.8 In reply to 7861.7 Thanks Michael. So I guess a "thumbnail" viewer would be a lot harder to write, or maybe be too slow... - Brian

 From: Michael Gibson 24 Feb 2016  (9 of 34)
 7861.9 In reply to 7861.8 Hi Brian, well I think the idea for those viewers is to be able to interactively rotate/pan/zoom the model which won't work with a thumbnail image. Right now MoI does not write a thumbnail image into 3DM files either, but that's something I want to add in the future. - Michael

 From: Frenchy Pilou (PILOU) 24 Feb 2016  (10 of 34)
 Funny! A sine wave along a sine wave! :) French version: http://moiscript.weebly.com/geacuteomeacutetries-par-bemfarmer.html (holes are only a texture with holes! ;) EDITED: 24 Feb 2016 by PILOU

 From: TOM (SIRTOM) 25 Feb 2016  (11 of 34)
 Thank you gentleman for your help, Bemfarmer youre amazing !

 From: bemfarmer 29 Feb 2016  (12 of 34)
 7861.12 In reply to 7861.11 Thanks Tom. The scripts are mainly cut and paste, based upon Michaels scripts, and study of them. Attached is an update, adding spherical sine wave. It was a bit harder, due to imaginary numbers turning up in the spherical formula, due to possible square root of negative numbers. So there is an alert if amplitude squared is greater than radius squared. Note that negative amplitude is possible, resulting in "phase shifts." The solution is cobbled together. Maybe there is a better way. The .js and .htm in the zip are not labeled 2, so they could overwrite older versions. - Brian Attachments:

 From: Frenchy Pilou (PILOU) 29 Feb 2016  (13 of 34)
 French Version! ;) http://moiscript.weebly.com/geacuteomeacutetries-par-bemfarmer.html --- Pilou Is beautiful that please without concept! My Gallery

 From: TOM (SIRTOM) 2 Mar 2016  (14 of 34)
 7861.14 In reply to 7861.12 Hi Benfarmer , very cool to see you have updated the script - never thought of a circulear sine wave before ... works perfectly ! EDITED: 2 Mar 2016 by SIRTOM Image Attachments:

 From: TOM (SIRTOM) 2 Mar 2016  (15 of 34)
 7861.15 In reply to 7861.14 Im really impressed with the circular sine wave . is there an easy way to create only a segmented circular sine wave (like 30° / 60° etc), Bemfarmer ?

 From: Frenchy Pilou (PILOU) 2 Mar 2016  (16 of 34)
 Create CircularSinWave2 In view Top PolyLines : you can take any angle in seeing the Bottom task Bar case < angle or input angle by numeric keyboard! Trim ;) Seems some speedy! And avoid headache to Bemfarmer! :) EDITED: 2 Mar 2016 by PILOU

 From: TOM (SIRTOM) 3 Mar 2016  (17 of 34)
 7861.17 In reply to 7861.16 Hi Pilou, Never intended to create headache to benfarmer ;-) I thought maybe it is only the need to change a number in the code - for example I changed "8" to "3" in the code of the array command to generate 3 instead of 8 instances. Btw what renderer did you use for that nice "sinewave" rendering ?