SketchUcation Plugin Store

 

 

[Plugin] TIG.splitsausage v1.1 20120219

[Plugin] TIG.splitsausage v1.1 20120219

Postby TIG » Sat Feb 18, 2012 1:35 pm

Capture.PNG
(c) TIG 2012
Script:
TIG-splitsausage.rb
###
Splits a 'sausage' shaped face, made with followme etc into 'quads'
[four-sided faces].
Select ONE face and ONE edge that you want to be the 'seed' for the
'quads' vertices, typically this will be the 'end' edge.
Lines are then added between 'matching' vertices along the 'sausage' to
divide its face into 'quads'...
If the 'sausage' has an uneven number of vertices then the last facet will
be a triangle
Type into the Ruby Console: TIG.splitsausage
OR use Tools > Split Tools... submenu item.
It is one step undoable.
###
Donations: by PayPal.com to info @ revitrev.org
###
Version:
1.0 20120218 First issue.
1.1 20120219 At the end all new Edges added are selected to let you use
Entity Info to set them soft/smooth or hidden etc as desired.
Error messages added if incorrect selection.
Now in Tools > Split Tools submenu. http://forums.sketchucation.com/viewtop ... 58#p386658
###
###
Please, register (free) to access all the attachments on the forums.
TIG
User avatar
TIG
Global Moderator
 
Posts: 13968
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] TIG.splitsausage v1.0 20120218

Postby Gaieus » Sat Feb 18, 2012 1:42 pm

:thumb: Now I can split my sausage... :D
Gai...
User avatar
Gaieus
Administrator
 
Posts: 27611
Joined: Sat Oct 20, 2007 8:24 am
Location: Pécs, Hungary
Name: Csaba Pozsárkó
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: historical reconstruction
Level of SketchUp: Advanced

Re: [Plugin] TIG.splitsausage v1.0 20120218

Postby TIG » Sat Feb 18, 2012 1:48 pm

Thought I'd keep on the 'food theme' - that started with 'donut' and now 'sausage' - to go with our sKetchup...
Maybe 'splitUp' should have been called something else - 'splitpeas' or 'splitbananas' to match ? ;)
TIG
User avatar
TIG
Global Moderator
 
Posts: 13968
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] TIG.splitsausage v1.0 20120218

Postby thomthom » Sat Feb 18, 2012 2:05 pm

:lol:
Love the new naming conversion!

Nice utility, I've wanted one like this.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17593
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] TIG.splitsausage v1.0 20120218

Postby Rich O Brien » Sat Feb 18, 2012 3:47 pm

Is it possible that EebyOffset can morph into EebyScale. Where I select an edge/loop and extrude them leaving the original selection and having quads.

Am I making sense?
:::Blog:::

I'm a Trimbler now!
User avatar
Rich O Brien
Administrator
 
Posts: 8285
Joined: Fri Oct 31, 2008 9:05 am
Location: Limerick, Ireland
Name: Rich O'Brien
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Advanced

Re: [Plugin] TIG.splitsausage v1.1 20120219

Postby TIG » Sun Feb 19, 2012 1:28 pm

Here is v1.1 viewtopic.php?p=386610#p386610
At the end all new Edges added are selected to let you use Entity Info to set them soft/smooth or hidden etc as desired.
Error messages added if incorrect selection.
Now in Tools > Split Tools submenu. viewtopic.php?p=386658#p386658
Capture.PNG
Please, register (free) to access all the attachments on the forums.
TIG
User avatar
TIG
Global Moderator
 
Posts: 13968
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] TIG.splitsausage v1.1 20120219

Postby Khai » Sun Feb 19, 2012 3:45 pm

oh my. you are brilliant... no more doing this by hand :mrgreen:
Khai
 
Posts: 548
Joined: Sun Mar 15, 2009 4:53 pm
Location: Onboard his TARDIS
Name: Khai

Re: [Plugin] TIG.splitsausage v1.1 20120219

Postby Dave R » Sun Feb 19, 2012 5:10 pm

TIG, this is a very useful tool that I expect many people didn't even know they needed. thank you.

I can see this as a great start to dividing a molding created with Follow Me into its component parts. I have to do this sort of thing frequently. The steps I normally use after Follow Me are:

Draw in all the miter lines on the horizontal surfaces.
Select each section that, in real life, would be a single piece of molding and make it a component.

Your plugin would reduce a little of the work by eliminating the need to chase around all of the molding extrusion. It could all be achieved while zoomed in to one end of the molding.

So to look the proverbial gift horse in the mouth, is it possible to get all of the surfaces divided at the corners? I'm thinking that one might select the profile that was used for Follow Me and divide all faces where there's a direction change in the bounding edges. That probably needs some thought as to how that would work. Or, to take it a step further, suppose there was a version of Follow Me that would make those miter lines.
Please, register (free) to access all the attachments on the forums.
Inspecting mirrors is a job I could easily see myself doing.
User avatar
Dave R
Global Moderator
 
Posts: 8999
Joined: Tue Nov 13, 2007 11:52 pm
Location: SE Minnesota
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: woodworking
Level of SketchUp: Advanced

Re: [Plugin] TIG.splitsausage v1.1 20120219

Postby Dave R » Fri Feb 08, 2013 11:31 am

Hmmm... I was just experimenting with splitting a molding created with Follow Me and I got the result shown below.
Split Sausage.png

It worked fine on the opposite face.

Feature or bug?
Please, register (free) to access all the attachments on the forums.
Inspecting mirrors is a job I could easily see myself doing.
User avatar
Dave R
Global Moderator
 
Posts: 8999
Joined: Tue Nov 13, 2007 11:52 pm
Location: SE Minnesota
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: woodworking
Level of SketchUp: Advanced

Re: [Plugin] TIG.splitsausage v1.1 20120219

Postby TIG » Fri Feb 08, 2013 11:36 am

Isn't it already split along that surface, view with hidden geometry 'on' ?
It's use is meant to divide up a face using its vertices that only have two edges ?
Like the flat faces but not the curved surface which comprises several facets...
I don't think it's meant to [or able to] do what you wish...
What were you hoping for exactly ?
TIG
User avatar
TIG
Global Moderator
 
Posts: 13968
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] TIG.splitsausage v1.1 20120219

Postby Dave R » Fri Feb 08, 2013 11:43 am

split sausage2.png


No, they aren't already split. The surfaces on the top and bottom of the "molding" are single faces which is what I was hoping to have split up.

split sausage 3.png


This is what the plugin does on the top face. I was expecting a repeat performance on the bottom one.
Please, register (free) to access all the attachments on the forums.
Inspecting mirrors is a job I could easily see myself doing.
User avatar
Dave R
Global Moderator
 
Posts: 8999
Joined: Tue Nov 13, 2007 11:52 pm
Location: SE Minnesota
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: woodworking
Level of SketchUp: Advanced

Re: [Plugin] TIG.splitsausage v1.1 20120219

Postby TIG » Fri Feb 08, 2013 11:47 am

Sorry, I misinterpreted the form, it looks like a 3d surface because you showed it 'upside down'... The other view explained it :roll:
So now I see no reason it shouldn't work on this other face.
Do you have any reversed faces ?
If you erase the face and remake it by overdrawing an edge does it split OK then ?
Is it one of these 'coincident faces' where if you erase it there's still one below it ??
Can you PM me the SKP for some testing ...
TIG
User avatar
TIG
Global Moderator
 
Posts: 13968
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] TIG.splitsausage v1.1 20120219

Postby Dave R » Fri Feb 08, 2013 11:54 am

Sorry about the orientation. I was just looking at it from below.

No reversed faces--those would be obvious with the green back face color I use. It's just a simple Follow Me. No coincident faces. Deleting the face and healing it seems to take care of the problem.
Inspecting mirrors is a job I could easily see myself doing.
User avatar
Dave R
Global Moderator
 
Posts: 8999
Joined: Tue Nov 13, 2007 11:52 pm
Location: SE Minnesota
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: woodworking
Level of SketchUp: Advanced

Re: [Plugin] TIG.splitsausage v1.1 20120219

Postby TIG » Fri Feb 08, 2013 12:13 pm

Another way to avoid the issue without even reforming the face is to select just the face and one short end edge, then it splits OK.
I think what it is, is that if you have all of the edges selected it takes the first one in the 'collection' and starts the splitting from there, because the form is 'concave' you can then get some diagonal splitting lines that don't do what you want if that first edge isn't a short 'end one'... Maybe reforming the face takes the first edge as the 'end one' and thereby running the tool with all of the face's edges selected works OK.

So the lesson is select just the face and one edge that then determines where the splitting starts from - usually at the 'end' of the sausage !
TIG
User avatar
TIG
Global Moderator
 
Posts: 13968
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] TIG.splitsausage v1.1 20120219

Postby Dave R » Fri Feb 08, 2013 12:51 pm

Thanks, TIG.

So basically it might work if the face and all its edges are selected or it might not. And if it doesn't, select the face and only one edge. Got it.
Inspecting mirrors is a job I could easily see myself doing.
User avatar
Dave R
Global Moderator
 
Posts: 8999
Joined: Tue Nov 13, 2007 11:52 pm
Location: SE Minnesota
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: woodworking
Level of SketchUp: Advanced

Re: [Plugin] TIG.splitsausage v1.1 20120219

Postby numerobis » Fri Feb 08, 2013 7:04 pm

oh... unbeleivable that i missed this one before... Thanks for bringing this up again, Dave. ;)
Great plugin! thank you very much! i will try it :)
numerobis
 
Posts: 259
Joined: Sat Apr 12, 2008 1:27 pm
Location: Germany
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] TIG.splitsausage v1.1 20120219

Postby rv1974 » Sun Feb 10, 2013 10:30 am

This splitter would UNDOUBTEDLY become megahit if it additionally could align pre-applied textures along edges. :roll:
rv1974
 
Posts: 519
Joined: Tue Nov 13, 2007 11:38 am
Name: rv1974
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] TIG.splitsausage v1.1 20120219

Postby numerobis » Sun Feb 10, 2013 11:56 pm

rv1974 wrote:This splitter would UNDOUBTEDLY become megahit if it additionally could align pre-applied textures along edges. :roll:

viewtopic.php?f=323&t=44552&hilit=thrupaint
;)
numerobis
 
Posts: 259
Joined: Sat Apr 12, 2008 1:27 pm
Location: Germany
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] TIG.splitsausage v1.1 20120219

Postby smicha » Sat Mar 02, 2013 10:10 am

TIG,

When I use SplitSausage on arcs I get strange results - see the screenshot. Is it possible to fix it?

Sebastian


smicha
 
Posts: 57
Joined: Mon Nov 07, 2011 4:12 pm
Location: Warsaw, Poland

Re: [Plugin] TIG.splitsausage v1.1 20120219

Postby smicha » Sat Mar 02, 2013 10:17 am

Sorry TIG,

I just didn't select the edge - it works like a charm.
smicha
 
Posts: 57
Joined: Mon Nov 07, 2011 4:12 pm
Location: Warsaw, Poland

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Are you a Premium Member? Get your freebies here. Are you not a Premium Member yet? Upgrade your account to grab these freebies instantly.

Ad Machine
Robot
 
Posts: 2012


Return to Plugins

Who is online

Users browsing this forum: ioplex, martinhache, Renderiza, TIG, vicspa and 17 guests