Re: [Plugin] Quick Lathe v1.2.0 31mar2013

Re: [Plugin] Quick Lathe v1.2.0 31mar2013

Postby Trogluddite » Sun Mar 24, 2013 4:04 am

Been working on lots of round things lately, and found myself getting annoyed with "follow me", and the other similar plugins I have - mostly because they always destroy the arcs and curves that I'm following around, which makes later editing fiddly.
So here's my first attempt a writing something that "turns" forms in what I think is a slightly more user friendly way...
Quick Lathe.rbz

Quick Lathe.pdf

The main advantages are...
- No need to construct a circle to follow - you just need an axis line.
- Multiple faces can be lathed in one pass.
- The arcs/circles of the lathe paths remain intact, for easy editing using the 'cardinal points' etc.
- No nasty 'follow me' end points when you only lathe an arc.
- Re-orients inside out solids (only for "capped" solid forms so far - needs work).
- Makes groups or components with lathe axis alignment (axis -> Z)
- Doesn't destroy the original profile geometry (unless you want it to)
- Automatic sub-division into an array of symmetrical component instances
- Choice of end-capped or open forms for arcs.
- Perpendicular terminated arcs option.

To Install...

- Download the .rbz file.
- Open Sketchup.
- 'Plugins' menu -> Install -> RBZ Package, and navigate to the file.
- Confirm the popup box.

To use...

- Too much to include here any more - see the .pdf download (this will be improved, just a draft at the moment).

Version History.

V1.0.1 - 24mar2013. Fixed a bug where the lathed form moved from the profile position if the profile was not in contact with the axis line.
V1.1.0 - 29mar2013. Component creation, end cap options added. Code re-factoring.
v1.1.1 - 29mar2013. Re-versioned as v1.1.0 was the wrong file with some de-bugging code still in place.
v1.2.0 - 31mar2013 Negative angles and non-coplanar faces now handled correctly. Improvements to 'front-face' correction.

Licence
Free to use, copy, distribute or modify so long as the author attribution remains in the code.
No warranty! - I've tested everything I can think of on my system, but I can't guarantee that it will behave for you - let me know if you think it's doing anything it shouldn't, and I'll do my best to get any bugs fixed.

Hope you find it useful.
Trog.
2
Last edited by Trogluddite on Sun Mar 31, 2013 11:56 pm, edited 8 times in total.

Trogluddite 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Quick Lathe v1.0.0

Postby Dave R » Sun Mar 24, 2013 4:17 am

Very cool! thank you. I like that it leaves the "hoops" welded and straightens out the ends. That'll make it a lot of things faster.

One thing I find curious is that the lathed shapes can get moved from the original location of the profile. The upper shape was turned from the profile shown in green. The plugin put it up above the other lathed shape. Both line up with the near end of the line.

quicklathe.png
0
%

(THERE'S NO PLACE LIKE)

G28 X0.0 Y0.0 Z0.0

M30

%
User avatar
Dave R 
Global Moderator
 

Re: [Plugin] Quick Lathe v1.0.1 24mar2013

Postby Trogluddite » Sun Mar 24, 2013 5:07 am

Oops :oops:
Thanks for spotting that so quick and getting back to me.
Version 1.0.1 is now in the top post - hopefully with my X's, Y's, and Z's calculated properly this time!
0

Trogluddite 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Quick Lathe v1.0.1 24mar2013

Postby massimo » Sun Mar 24, 2013 8:42 am

Cool indeed. Thanks. :thumb:
0
User avatar
massimo 
 

Re: [Plugin] Quick Lathe v1.0.1 24mar2013

Postby srx » Sun Mar 24, 2013 11:55 am

Thank you very much. :thumb:
0
www.saurus.rs
User avatar
srx 
 

Re: [Plugin] Quick Lathe v1.0.1 24mar2013

Postby Dave R » Sun Mar 24, 2013 11:58 am

Steve,

That seems to have dine it. Thank you.
0
%

(THERE'S NO PLACE LIKE)

G28 X0.0 Y0.0 Z0.0

M30

%
User avatar
Dave R 
Global Moderator
 

Re: [Plugin] Quick Lathe v1.0.1 24mar2013

Postby Trogluddite » Sun Mar 24, 2013 12:16 pm

Thanks everyone, glad to hear you're liking it! :ecstatic:
0

Trogluddite 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Quick Lathe v1.0.1 24mar2013

Postby Dave R » Sun Mar 24, 2013 12:19 pm

Steve, now the requests are going to start. :D

Any chance of getting the plugin to create components instead of or in addition to groups? That would be even better for my work flow.

Edit to add:

QuickLathe.png


One of the ways I would use this is to replace Follow Me for this sort of thing. For complex turned parts I like to quarter them. It results in less geometry to deal with when drawing and cleaning up around the pommels and it helps to keep file size lower. I make a component of the quarter and save it for future use. Sometimes I want just half a leg or a 3/4 leg for a kitchen island and they are easily made from these quarters.
0
%

(THERE'S NO PLACE LIKE)

G28 X0.0 Y0.0 Z0.0

M30

%
User avatar
Dave R 
Global Moderator
 

Re: [Plugin] Quick Lathe v1.0.1 24mar2013

Postby Trogluddite » Sun Mar 24, 2013 12:43 pm

Dave R wrote:Steve, now the requests are going to start.

He he, yes, I've seen the outrageous way you all treat TIG, ThomThom, Dan etc., you greedy blighters! :lol: ;)

Dave R wrote:create components instead of or in addition to groups?

Actually, I already had just that feature in mind - I work on a lot of mock-ups of control panels etc. so this is to be part of my little toolkit for designing knobs and dials.
In fact, it's partly where that bug came from - trying to get the group axis/origin located consistently so that the components could also glue to a face.
I'm just working on a little addition at the moment that gives a clear indication which way the axis line is pointing, and the option to reverse the direction. I usually use the 'trim template from a rectangle' method to make profiles, and it's 50/50 whether the component ends up upside down when you choose an existing edge - which rather spoils the effect!
0

Trogluddite 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Quick Lathe v1.0.1 24mar2013

Postby saturne45 » Sun Mar 24, 2013 2:32 pm

Very good plug. Thank you.
0

saturne45 
 

Re: [Plugin] Quick Lathe v1.0.1 24mar2013

Postby Ken » Sun Mar 24, 2013 3:00 pm

Nice plugin and thanks for your work.

Noticed, since coplanar faces are not removed or even given an option to remove coplanar faces, after lathing, you can not push/pull what should be a face, i.e. the end of a pipe.

I found this out be doing a lath, that should have made a section of piping. However, when I wished to make the pipe longer, I couldn't push/pull the ends.

Again thank you for your time and effort.

Ken
0
Fight like your the third monkey on Noah's Ark gangway.
User avatar
Ken 
Premium Member
Premium Member
 

Re: [Plugin] Quick Lathe v1.0.1 24mar2013

Postby Box » Sun Mar 24, 2013 3:50 pm

Love it, Multiple on same axis excellent, nice clean and simple to use.

But
Perhaps I have misunderstood this bit
- The arcs/circles of the lathe paths remain intact, for easy editing using the 'cardinal points' etc.

It was the main reason for me testing, so sick of recurving/welding etc

But my rings seem to be exploding.

As you can see from the pushpulls in the pic.
Exploded rings.JPG

It also seem that if I recurve or weld the the ends of the extrusion, it will still break up when PPed. If I copy the profile away from the extrusion it retains the weld.
0
User avatar
Box 
 

Re: [Plugin] Quick Lathe v1.0.1 24mar2013

Postby Trogluddite » Sun Mar 24, 2013 5:26 pm

Wow, so much interest, I am very flattered.

@Dave - ah yes, didn't see your pic's before. That's just what I had in mind when getting rid of the follow-me "end mess". Might be an idea also to have an option to remove the "end planes" of the extrusion too, as they would just become useless internal faces when duplicating the segments.

@Ken - definitely add that to the 'to do' list For my own intended application I left the 'facets' on co-planar faces as I often want to modify the face later - but I can see how that would not be expected for other applications.

@Box - interesting; again I think probably a case of me being a little blinkered by my own intended use (kind of more like Dave's wood turning examples). The circles/arcs that go around the lathe axis stay 'welded', which was my intention, but I hadn't considered the case of the initial 'profile' face being an arc or curve.
I'll look into that - getting the loops to stay in one piece proved to be rather tricky, so it may depend on how SU handles having welded curves that cross over each other
0

Trogluddite 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Quick Lathe v1.0.1 24mar2013

Postby Box » Sun Mar 24, 2013 5:32 pm

Ah I see now.
Would never have thought it was in that direction.
Perhaps a choice of one way or the other is possible.
0
User avatar
Box 
 

Re: [Plugin] Quick Lathe v1.0.1 24mar2013

Postby Dave R » Sun Mar 24, 2013 5:37 pm

Steve, if you are going to modify the plugin for those quarters as I showed, may I suggest that you also see if you can work in a way to get the first and last segments in the extrusion to be perpendicular to the ends of the extrusion? Here's an example where I've set that up for a turned leg. The segments marked in red are perpendicular to each other. These would be the first and last segments for a quartered lathed shape.



I normally set up these types of things that way so I can avoid the shadow line at the seam as you can see in my example in my other post.

As to getting rid of the profile faces, that would be a nice option although it isn't difficult to do manually. Of course for something like my table leg or your knobs, those faces aren't required. the main reason I remove the faces is so it won't show through at the seam lines.
0
%

(THERE'S NO PLACE LIKE)

G28 X0.0 Y0.0 Z0.0

M30

%
User avatar
Dave R 
Global Moderator
 

Re: [Plugin] Quick Lathe v1.0.1 24mar2013

Postby gilles » Sun Mar 24, 2013 10:18 pm

You made a very good one here, be proud of you.

Many thanks.
0
" c'est curieux chez les marins ce besoin de faire des phrases "
User avatar
gilles 
Top SketchUcator
 

Re: [Plugin] Quick Lathe v1.0.1 24mar2013

Postby Trogluddite » Sun Mar 24, 2013 11:38 pm

gilles wrote:You made a very good one here, be proud of you.

Thankyou Gilles, it's been very satisfying to make something useful - and of course, we must not forget all the other kind and generous people here who made it possible for me to learn all these things.

Box wrote:Perhaps a choice of one way or the other is possible

Yes, it looks like it will have to be done that way - I made a little test rig to try putting the welded curves the other way, and bar a few minor bugs, that works OK. But whatever I do, SU won't let there be welded curves in both directions at once - I tried it using some of the other welding and recurving plugins, and it seems that the geometry just isn't allowed to work that way.
So it will have to be an either/or thing.

Dave R wrote:first and last segments in the extrusion to be perpendicular to the ends of the extrusion

Hmm, i hadn't considered that, but i know what you mean, it does kind of spoil the appearance when you get those unsmoothed joins.
I'll have tinker and see how likely it is once I've tidied up a few other things - the code is getting a little unmanageable with all this "feature creep" going on, so I need to get everything nice and structured so I can see the wood for the trees.

PS) Just about there with the co-planar faces thing, so maybe a minor update coming soon just to get the low hanging fruit picked off.
0

Trogluddite 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Quick Lathe v1.1.0 29mar2013

Postby Trogluddite » Fri Mar 29, 2013 10:38 pm

Version 1.1.0 now available in the Top Post.

New features...
- Co-planar faces can now be merged.
- When doing arcs, you can choose capped or uncapped ends (or hidden ends for 'seamless' component arrays)
- Can now make components as well as groups.
- New features added for making arrayed component 'segments' which will join seamlessly, including perpendicular end-caps (as per Dave R's examples in above posts).
- First draft of .pdf user guide (very rough - needs many pictures adding!!)
- Re-factored code should be a little faster and more robust (and maintainable!!)

Still to do...
- Face orientation correction only works 100% for closed solids ("capped" arcs and 360deg lathes). Sure this is fixable.
- Extrudable end caps - losing co-planar edges makes push/pull possible now, but still working on making them 'smooth aware' for when circles and arcs are extruded.
0

Trogluddite 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Quick Lathe v1.1.0 29mar2013

Postby Trogluddite » Fri Mar 29, 2013 10:51 pm

Ooops' apologies to whoever just uploaded - that wasn't the right Ruby file. Re-upped!
0

Trogluddite 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Quick Lathe v1.1.0 29mar2013

Postby driven » Fri Mar 29, 2013 11:26 pm

Working now, very clever indeed...

john
0
Last edited by driven on Sat Mar 30, 2013 12:02 am, edited 1 time in total.
learn from the mistakes of others, you may not live long enough to make them all yourself...

driven 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Quick Lathe v1.1.0 29mar2013

Postby gilles » Fri Mar 29, 2013 11:46 pm

Just select the face WITHOUT its edges and a line for axis.

Works fine.
0
" c'est curieux chez les marins ce besoin de faire des phrases "
User avatar
gilles 
Top SketchUcator
 

Re: [Plugin] Quick Lathe v1.1.0 29mar2013

Postby chin925 » Sat Mar 30, 2013 12:56 am

quick lathe sir i installed the plugin but did not appear in tools menu thks
1

chin925 
 

Re: [Plugin] Quick Lathe v1.1.0 29mar2013

Postby pilou » Sat Mar 30, 2013 1:17 am

Cool one :)

In the case of less 360°
Does it possible to have the End caps as a new selection ? :fro:

And a negative angle (or similar) for have a continuous second form etc...! :enlight:

In this case the "new selection" will make a "return" with the new axe! :o
( 3 curvated blue arrows wanted ! )

notpossible.jpg
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: [Plugin] Quick Lathe v1.1.0 29mar2013

Postby jolran » Sat Mar 30, 2013 11:11 am

Cool!! I don't lathe that often except for coffee, but this one was clever.

A quick question LOCAL_X. Cant You just use X_AXIS ? Since its already available can save you some typing :)
0
User avatar
jolran 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Quick Lathe v1.1.1 29mar2013

Postby Trogluddite » Sat Mar 30, 2013 12:55 pm

Thanks for the reports and kind words - good to know that it is (mostly!) working! :D

chin925 wrote:quick lathe sir i installed the plugin but did not appear in tools menu thks

Hi there - there was a damaged file for the download - I replaced this very quickly, but saw that one person downloaded the bad file. Maybe this person was you?
Please try with the newest file (v1.1.1) in the top post - if this one is also broken for you, then let me know, and I will see if I can find the problem.

Pilou wrote:Does it possible to have the End caps as a new selection ? :fro:
And a negative angle (or similar) for have a continuous second form etc...! :enlight:

Hi Pilou - yes, negative angles can be made possible. I avoided negative angles before because it made shapes with a mixture of front/back faces - but with the new code, I will be a able to make this work with a simple transformation.
Selecting "follow-on faces" is difficult at the moment because the end faces can be in different groups - but maybe by moving the original selection it could be done.

I think first, I will work on the user interface - already the options are becoming untidy, so I think it needs a proper tool (e.g. rotation arrows for the selection, like in your picture) to make the tool operation more clear.

jolran wrote:A quick question LOCAL_X. Cant You just use X_AXIS ?

He he, a "Doh!" moment! I didn't see the 'X_AXIS' etc. constants before - thanks for the tip, that will be very useful.
0

Trogluddite 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Quick Lathe v1.1.1 29mar2013

Postby jolran » Sat Mar 30, 2013 1:09 pm

Yeah, it doesent say so in the API. I think it was TIG who told me last year or so.
0
User avatar
jolran 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Quick Lathe v1.1.1 29mar2013

Postby pilou » Sat Mar 30, 2013 2:21 pm

Selecting "follow-on faces" is difficult at the moment because the end faces can be in different groups - but maybe by moving the original selection it could be done.


In the case of Geometry is enable and not Group or Component ! ;)
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: [Plugin] Quick Lathe v1.1.0 29mar2013

Postby gilles » Sat Mar 30, 2013 4:32 pm

Pilou wrote:Cool one :)

In the case of less 360°
Does it possible to have the End caps as a new selection ? :fro:

And a negative angle (or similar) for have a continuous second form etc...! :enlight:

In this case the "new selection" will make a "return" with the new axe! :o
( 3 curvated blue arrows wanted ! )

notpossible.jpg


This can be done reversing the selected face(s)

;)
0
" c'est curieux chez les marins ce besoin de faire des phrases "
User avatar
gilles 
Top SketchUcator
 

Re: [Plugin] Quick Lathe v1.1.1 29mar2013

Postby pilou » Sat Mar 30, 2013 7:07 pm

This can be done reversing the selected face(s)


Tricky... but that oblige to reverse again the result for have a consistant volume :)

And as you have several volumes the orient face just work for ONE volume! :o

So very, very tiedous when have thousand of volumes!!! :mrgreen:

Else very funny when the successive selection will be made! Some sinuous volumes will be made! :enlight:
(in mode Geometry enable) And think to erase the internal faces! :geek:
Bravo for Trogluddite! :fro:

And it's a little pity that the axe must be coplanar and not with any orientation! :ugeek:
I don't see not very big differences on the calculation! :roll:

Happy easter Eggs! :enlight:
tiedous.jpg

tiedous1.jpg
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: [Plugin] Quick Lathe v1.1.1 29mar2013

Postby Ken » Sun Mar 31, 2013 1:32 am

Just a quick note. If the version number in the plugin forum is V1.1.1 than the version number in the rb file should be the same. The version number in the download is V1.1.0. This just makes it easier for multiple upgrades, one can be sure he is operating with the newest version.

And this from a very grateful user of your plugin who is incapable of writing one line of code.

Again thank you for this plugin. Since I model from ACAD/DXF files, I find this a very useful plugin.

Ken
0
Fight like your the third monkey on Noah's Ark gangway.
User avatar
Ken 
Premium Member
Premium Member
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

Next


 

Return to Plugins

Who is online

Users browsing this forum: fermatbh08, goga63, patricej and 13 guests

Visit our sponsors: