Hello.
I am looking how to draw a surface defined by a function.
The closest I have managed are multiple “steps”, each step being defined by (i.e.) Z=sin(X).
Ideally I would like a scalable group, that could then return key values.
Is this possible with DC, or solely the realm of Ruby?
I was thinking of another one but haven’t found it yet.
p.s. the created graph represents the graph in segmented form in SketchUp and is plain geometry, edges forming a segmented curve. So be careful with a scaled version as to what math equation that will represent! Or just input a second math equation in the plugin.
There have been similar requests before. Search the forum for ‘sine curve’ and you will find four other posts on this or a related subject. They may be helpful.
it is just an example on how to use copy as a variable to form a shape or a set of points, y=sin(copy) is like y=sin(x), its a starting point where further development like rotating and sizing the copy length can join the “dots”, like the arc tool the number of segments will get closer to the perfect, So with the sample, the range, pitch, frequency are things one can explore in ones development of the function.
Try the Draw Metal LLC Taper maker, Curve maker and Stock maker plugins for Sketchup. Be aware the length of a sine curve cannot calculated by use of your equation. For that you will have to use a ellipitic integeral since there is no closed form solution for that if you want accurate number.
Not sure if this is the same .rb as posted above.
It was created via a request I made in SketchUcation years ago.
I used it to create the path of a huge floating sewer line. Worked great.