banner



How To Draw A Sine Wave In Sketchup

Full Version: sine wave script

Show messages:1-2021-34

From: TOM (SIRTOM)

23 Feb 2016   [#1]

Hi,
Is there an easy way to generate a circle with a sine wave profile (would look like a cogwheel with
rounded edges ) ?


From: Karsten (KMRQUS)

23 Feb 2016   [#2] In reply to [#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] In reply to [#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] In reply to [#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

24 Feb 2016   [#5] In reply to [#4]

The modified script worked fine. Did not do any sliders. I'll post it tomorrow.
- Brian


From: bemfarmer

24 Feb 2016   [#6] In reply to [#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.

Attachments:
_CircularSineWave.7z


From: Michael Gibson

24 Feb 2016   [#7] In reply to [#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] In reply to [#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] In reply to [#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)

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! ;)


From: TOM (SIRTOM)

Thank you gentleman for your help, Bemfarmer youre amazing !


From: bemfarmer

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:
_CircularSineWave2.zip


From: Frenchy Pilou (PILOU)

French Version! ;)
http://moiscript.weebly.com/geacuteomeacutetries-par-bemfarmer.html


From: TOM (SIRTOM)

Hi Benfarmer , very cool to see you have updated the script - never thought of a circulear sine wave before ... works perfectly !

Image Attachments:
sine.png


From: TOM (SIRTOM)

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)

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! :)


From: TOM (SIRTOM)

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 ?


From: Frenchy Pilou (PILOU)

<< what renderer did you use for that nice "sinewave" rendering ?

The funny easy tricky SimLab Composer! (not free: 4$/month hobbyist-student)

and at the end you can use some of these 2 other free ones !
from a Sketchup model by NextDave

Sketchup Make (free)

Simlab

then Fotor

and finally Fotosketcher + Fotor


From: hep

Hi Pilou
nice - where did you get that setup for Simlab?


From: Frenchy Pilou (PILOU)

<< where did you get that setup for Simlab?
for the first image rendered
Just pick Materials from the Gallery of Materials as explained on the video
and apply them on each different part of your model by moving from Material to the piece (selected or not) on the screen!
This can be made even during the rendering itself!



Show messages:1-2021-34

How To Draw A Sine Wave In Sketchup

Source: http://moi3d.com/forum/lmessages.php?webtag=MOI&msg=7861.1

Posted by: grangerficulaiders.blogspot.com

0 Response to "How To Draw A Sine Wave In Sketchup"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel