[Plugin] Script for making of logs
-
I try to help to my friend to make this script
But we have problem with: how to make dap between logs?
How to make curve, which will be intesect and divide log into 2?
And need some cleaning work for deleting bottom part.
See in foto and screenshot
http://www.srub-stroi.ru/image/113.jpg
http://www.3dcenter.ru/forum/uploads/post-54131-1182609123.jpg
script in attachI Thank you for future advices
Ilay[spire7k]
-
I looked at your script. you used the circle and then extruded it using push pull.
As far as I know you cant edit the circle. you should construct the log profile
using 2 opposing arcs, with 2 connecting lines for the flat top and btm. of the log.
when you have that new profile, then you can use push pull -
I didn't look at the script, but I can tell from your picture what you are trying to do.
First, draw the circle for the end of the log. Then draw an interior arc at the bottom of the circle which would represent the portion of the log that you would cut away. Then, remove the lowermost section of the circle to create the final profile you need. Then, pushpull it.
Todd
http://www.sketchucation.com/forums/scf/sas/Ruby/Picture%201.png
-
If it's too difficult to code in Ruby (though drawing two coplanar arcs that will face doesn't seem that impossible ?), then why not change tack and follow Didier's example in his 'Balustrade.rb' script (or even Todd's 3Dtext tool) ?
This method allows you to draw any section you like... In your case you'd draw up a a set of simple outlines with the curved top and the bottom slot etc, with a face centred at 0,0,0... and then save them as say log300,skp, log400.skp etc. These are the 'component' "log" faces your script will load into the model... as you might choose from a dialog's list (which itself is made by looking into your ../Plugins/../Logs/ folder and listing its current contents - that way you can add to/subtract from the available log section component faces as you wish). Your script would then place the desired face component and explode it, then take its face and pushpull it by the amount you specified in the other entry in the dialog...
-
there are Ruby coding examples of how to draw arcs and lines and then making them into a face
have a look at SteelSections.rb -
tomot, Todd, TIG thank you!
I will try to make it as TIG said...but i still dream about magic-ruby all-making-button - "push it' and you get log wall with daps and ect. )[spire7k]
Advertisement