sine wave script
 1-20  21-34

Next
 From:  TOM (SIRTOM)
7861.1 
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

  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:  Karsten (KMRQUS)
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
  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:  Michael Gibson
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
  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
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
  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
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

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

  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:  Michael Gibson
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
  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
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
  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:  Michael Gibson
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
  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:  Frenchy Pilou (PILOU)
7861.10 
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

  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:  TOM (SIRTOM)
7861.11 
Thank you gentleman for your help, Bemfarmer youre amazing !
  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
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

  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:  Frenchy Pilou (PILOU)
7861.13 
---
Pilou
Is beautiful that please without concept!
My Gallery
  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:  TOM (SIRTOM)
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:
Size: 45.5 KB, Downloaded: 39 times, Dimensions: 555x439px
  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:  TOM (SIRTOM)
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 ?
  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:  Frenchy Pilou (PILOU)
7861.16 
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

  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:  TOM (SIRTOM)
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 ?
  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:  Frenchy Pilou (PILOU)
7861.18 In reply to 7861.17 
<< 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

EDITED: 3 Mar 2016 by PILOU

  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:  hep
7861.19 
Hi Pilou
nice - where did you get that setup for Simlab?
  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:  Frenchy Pilou (PILOU)
7861.20 In reply to 7861.19 
<< 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!


EDITED: 3 Mar 2016 by PILOU

  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:  1-20  21-34