SketchUcation Plugin Store

 

 

[Plugin] extrudeEdgesByEdges.rb

[Plugin] extrudeEdgesByEdges.rb

Postby TIG » Mon Jun 22, 2009 5:46 pm

    Copyright 2009/2010 (c), TIG
    All Rights Reserved.
    THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
    WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
    MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
    ###
    extrudeEdgesByEdges.rb
    ###
    Extrudes two sets of grouped edges into a faced mesh...
    ###
    Usage: Make two sets of edges [from lines, arcs, curves etc].
    These represent the 'profile' and the 'path' for the mesh.
    Make a group of each set.
    Note: If the groups share a common vertex then that fixes the
    new mesh's location, otherwise the nearest vertices are used,
    with the new mesh located near the profile, Move it as required...
    Now Select these 2 groups.
    Run the Plugin: 'Extrude Edges by Edges'.
    It makes a grouped faced 'mesh' from these two edge-sets.
    The progress at each stage is reported along the status bar.
    When the mesh is made the view zooms to include the original
    profile/path groups and the new mesh group.
    Then there are dialogs asking for Yes/No replies...
    If you want to 'orientate' the mesh-faces (which may not always
    be necessary: if it's chosen then it will be done as well as
    possible for any convoluted shapes.
    If you want to 'reverse' the mesh-faces.
    If you want the mesh-faces to 'intersect' with themselves
    (This is only necessary if the mesh has convoluted re-entrant
    surfaces). Intersecting the mesh might compromise some later
    triangulation...
    If you want to remove any 'coplanar edges'.
    If you want to 'triangulate' the new faces:
    on very complex inter-penetrating meshes a triangulating error
    message might appear - answer 'Yes' to undo triangulation,
    'No' to keep what's been done so far...
    Note that the triangulation 'undo' is separate within the main
    action's 'undo'.
    Finally, if you want to delete the original two groups.
    Note:
    Large numbers of edges in the groups increase the new faces and
    other operations exponentially, therefore only extrude the parts
    that can be copied/exploded together later...
    For example:
    2 edges x 2 edges >>> group with 4 faces & 12 edges
    4 edges x 4 edges >>> group with 16 faces & 40 edges
    8 edges x 8 edges >>> group with 64 faces & 144 edges
    16 edges x 16 edges >>> group with 256 faces & 544 edges
    32 edges x 32 edges >>> group with 1024 faces & 2112 edges
    ...
    Very large groups will eventually be made but the screen can
    'white out' and the 'counter' might appear to stop changing for
    several minutes... It is working.
    Use 'Smooth' and/or 'Show Hidden Geometry' on the mesh-group,
    also 'Sandbox flip-edge' tool to re-trianglate, as desired...
    Rarely some combinations of edge groups might go into a 'loop'
    and then SUp needs 'killing' - so save first !

    Donations:
    Are welcome [by PayPal], please use 'TIGdonations.htm' in the
    ../Plugins/TIGtools/ folder.
    OR

    Version:
    1.0 20090622 First 'beta' release.
    1.1 20090625 Speed improvements - face making time ~halved,
    typename >> kind_of?, triangulation glitch trapped
    and orientation improved.
    1.2 20090625 Orientation speed optimised.
    Glitch on groups erase fixed.
    1.3 20090626 Edges not facing in convoluted shapes trapped.
    1.4 20090707 Triangulation improved. Rare intersect glitch fixed.
    1.5 20090708 Zooms to show new group.
    1.6 20090708 Zooms to new group fixed for large models.
    1.7 20090709 Coplanar edge erasure errors trapped:
    0.999999 made 0.99999999 !!!
    1.8 20090808 Orienting and Triangulation speeds improved.
    2.0 20100114 Debabelized, 'Extrusion Tools' Toolbar added.
    2.1 20100120 Typo in lingvo translation fixed.
    2.2 20100120 Lingvo files updated - thanks FR=Pilou, ES=Defisto
    2.3 20100121 Typo preventing Plugin Menu item working corrected.
    2.4 20100123 FR lingvo file updated by Pilou.
    2.5 20100124 Menu typo glitch fixed.
    2.6 20100216 Now in own sub-menu 'Extrusion Tools...' in Plugins menu.
    2.7 20100222 Tooltips now deBabelize properly.
    2.8 20100222 Tooltips etc now deBabelized properly.
    2.9 20100428 Tool now exits gracefully.
    3.0 20100517 ES lingvo adjusted by Defisto.
NOTE: from 20100212 the latest versions of these files is in the zipped set downloaded from here http://forums.sketchucation.com/viewtop ... 63#p217663


ExtrudeEdgesByEdgesExample.png
ExtrudeEdgesByEdgesExamples.skp
Please, register (free) to access all the attachments on the forums.
Last edited by TIG on Tue Feb 16, 2010 12:55 pm, edited 23 times in total.
TIG
User avatar
TIG
Global Moderator
 
Posts: 13992
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]extrudeEdgesByEdges.rb

Postby Gaieus » Mon Jun 22, 2009 5:51 pm

:shock: :o :shock:

Question, TIG: do the two groups of curves need to be on perpendicular planes?
Gai...
User avatar
Gaieus
Administrator
 
Posts: 27629
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]extrudeEdgesByEdges.rb

Postby Chris Fullmer » Mon Jun 22, 2009 5:52 pm

Awesome TIG! You'll get lots of people excited about this script

Chris
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer
SketchUp Team
 
Posts: 6694
Joined: Wed Nov 21, 2007 3:21 am
Location: Davis, CA
Name: Chris Fullmer
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: landscape architecture
Level of SketchUp: Advanced

Re: [Plugin]extrudeEdgesByEdges.rb

Postby TIG » Mon Jun 22, 2009 5:56 pm

Gaieus wrote::shock: :o :shock:

Question, TIG: do the two groups of curves need to be on perpendicular planes?


No - but it's best if there's some non-coplanar-ness [if that's a word !]. If they are at some angle to each other you will get a 3D mesh. If they are coplanar you'll get a weird 2D mess... You can also have several bits of lines/curves - they don't need to be continuous - just grouped together as the required 'profile' and 'path'... The lines/curves can also be complex in 3D but the resulting intersecting mess might not be what you are expecting or want...
TIG
User avatar
TIG
Global Moderator
 
Posts: 13992
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]extrudeEdgesByEdges.rb

Postby broomstick » Mon Jun 22, 2009 6:00 pm

from what I see, this is awesome. The thing I need to model classical decorations..
User avatar
broomstick
 
Posts: 360
Joined: Thu Jul 17, 2008 6:21 pm
Location: Naples, Italy

Re: [Plugin]extrudeEdgesByEdges.rb

Postby Gaieus » Mon Jun 22, 2009 6:06 pm

OK TIG, that's what I meant. In fact, I'd probably not need it for coplanar curves (I can't really imagine a situation like that when it's needed butof course, who knows) but definitely something other than perpendicular can be handy.

Even better this "freedom" of the different elements in the groups (I guess that's why they are grouped but I wou;ldn't understand the answer anyway :D )

If you don't mind... :oops:
Gai...
User avatar
Gaieus
Administrator
 
Posts: 27629
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]extrudeEdgesByEdges.rb

Postby Pilou » Mon Jun 22, 2009 6:07 pm

Tip: single lines and arcs won't group, so draw another edge,
then group everything, edit the group and erase the temporary
edge...


Seems it's not necessary! ;) (line, arc)
Just go Menu Edit / Make Group for each object! ;)
Then launch the plug

Works like a charm! Bravo! :fro:
Here with 2 arcs without "another edge"! ;)
Please, register (free) to access all the attachments on the forums.
Last edited by Pilou on Mon Jun 22, 2009 6:24 pm, edited 1 time in total.
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
Pilou
Top SketchUcator
 
Posts: 10060
Joined: Wed Jan 23, 2008 10:33 pm
Operating system: Windows
SketchUp version: 6
License type: Free
SketchUp use: hobby
Level of SketchUp: Advanced

Re: [Plugin]extrudeEdgesByEdges.rb

Postby TIG » Mon Jun 22, 2009 6:16 pm

Pilou wrote:
Tip: single lines and arcs won't group, so draw another edge,
then group everything, edit the group and erase the temporary
edge...

Seems it's not necessary! ;) (line, arc)
Just go Menu Edit / Group for each object! ;)
Then launch the plug

I find that single lines or arcs won't group, but drawing another temporary line with it then grouping, then editing the group and deleting the temporary line seems to work to give a single arc group... It's because I use ashortcut key that isn't available on a single selection, BUT the Menu Edit >> Make-Group item is still OK... So if you can group single arcs via the menu without a hitch then that's great...
Any ideas on improvements or clever uses welcomed...
TIG
User avatar
TIG
Global Moderator
 
Posts: 13992
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]extrudeEdgesByEdges.rb

Postby Pilou » Mon Jun 22, 2009 6:36 pm

Next steps will be with 4 curves closed so Coons surfaces ;)
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
Pilou
Top SketchUcator
 
Posts: 10060
Joined: Wed Jan 23, 2008 10:33 pm
Operating system: Windows
SketchUp version: 6
License type: Free
SketchUp use: hobby
Level of SketchUp: Advanced

Re: [Plugin]extrudeEdgesByEdges.rb

Postby chango70 » Mon Jun 22, 2009 6:53 pm

WOW This is like Rhino Sweep alone rail. Very cool! :sketchstatic:
chango70
 
Posts: 587
Joined: Tue Mar 25, 2008 3:06 pm
Location: London

Re: [Plugin]extrudeEdgesByEdges.rb

Postby sepo » Mon Jun 22, 2009 7:21 pm

Thanks TIG..
I noticed it actually does not follow and rotate along the path. Although interesting proposition, and it works without any problems, it would be usefull if it coud also work in manner that can be predictable in design terms.
Please, register (free) to access all the attachments on the forums.
sepo
 
Posts: 1562
Joined: Wed Nov 14, 2007 1:19 pm
Location: Northampton UK
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin]extrudeEdgesByEdges.rb

Postby sepo » Mon Jun 22, 2009 7:33 pm

I pushed it with a lot of geometry and it seems very stable. It performs orienting and reversing faces without problem. Triangulation did not make any problems as well. :thumb: :thumb:
sepo
 
Posts: 1562
Joined: Wed Nov 14, 2007 1:19 pm
Location: Northampton UK
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin]extrudeEdgesByEdges.rb

Postby TIG » Mon Jun 22, 2009 7:42 pm

sepo wrote:Thanks TIG... I noticed it actually does not follow and rotate along the path. Although interesting proposition, and it works without any problems, it would be usefull if it coud also work in manner that can be predictable in design terms.
This tool extrudes edges by edges without rotation. If you want rotation use followme tool or followme_and_keep script: you'll need to make the profile faced first by adding a back set of lines - you also need to unhide/unsmooth all edges to get a 'mesh'... The advantage of extrudeEdgesByEdges is that the profile and path can be in complex in 3D and also not continuous...
Last edited by TIG on Mon Jun 22, 2009 7:49 pm, edited 1 time in total.
TIG
User avatar
TIG
Global Moderator
 
Posts: 13992
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]extrudeEdgesByEdges.rb

Postby dtrarch » Mon Jun 22, 2009 7:47 pm

TIG

One can add a point too and then group. :enlight:

Killer script.

dtr
dtrarch
Premium Member
Premium Member
 
Posts: 343
Joined: Tue Nov 13, 2007 8:03 pm

Re: [Plugin]extrudeEdgesByEdges.rb

Postby TIG » Mon Jun 22, 2009 7:49 pm

It doesn't matter what's in the groups - only edges get processed...
TIG
User avatar
TIG
Global Moderator
 
Posts: 13992
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]extrudeEdgesByEdges.rb

Postby EarthMover » Mon Jun 22, 2009 11:29 pm

Thanks TIG!
A designer is an emerging synthesis of artist, inventor, mechanic, objective economist and evolutionary strategist. - R. Buckminster Fuller
Some of my 3D crap
User avatar
EarthMover
Top SketchUcator
 
Posts: 1792
Joined: Fri Sep 12, 2008 9:06 pm
Location: Eastern Pennsylvania
Name: Adam Hails

Re: [Plugin]extrudeEdgesByEdges.rb

Postby mitcorb » Mon Jun 22, 2009 11:48 pm

TIG:
This was the subject of one of my first wishful posts. "Extrude" a curve along a curve.
Excellent work!!!! This is another one of those jaw droppers. We're gonna have you bronzed. Plotparis will jump out of his seat when he sees this.
Thank you.
mitcorb
I take the slow, deliberate approach in my aimless wandering.
User avatar
mitcorb
Top SketchUcator
 
Posts: 3407
Joined: Sat Mar 22, 2008 2:32 pm
Location: USA
Name: Tim
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: architecture
Level of SketchUp: Intermediate

Re: [Plugin]extrudeEdgesByEdges.rb

Postby mitcorb » Tue Jun 23, 2009 12:06 am

TIG:
This also works with the freehand tool in SU6, if anybody was wondering.
mitcorb
I take the slow, deliberate approach in my aimless wandering.
User avatar
mitcorb
Top SketchUcator
 
Posts: 3407
Joined: Sat Mar 22, 2008 2:32 pm
Location: USA
Name: Tim
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: architecture
Level of SketchUp: Intermediate

Re: [Plugin]extrudeEdgesByEdges.rb

Postby utiler » Tue Jun 23, 2009 12:18 am

Really great tool, TIG!!!! :berserk:
purpose/expression/purpose/....
User avatar
utiler
Top SketchUcator
 
Posts: 1928
Joined: Wed Nov 14, 2007 11:35 am
Location: Queensland, Australia
Name: Andrew
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin]extrudeEdgesByEdges.rb

Postby nino » Tue Jun 23, 2009 6:23 am

TIG,
It is great, Thanks
nino
 
Posts: 2
Joined: Fri Mar 14, 2008 8:10 am
Location: Tehran,Iran

Re: [Plugin]extrudeEdgesByEdges.rb

Postby urgen » Tue Jun 23, 2009 7:07 am

:thumb: :thumb: :thumb: great tool! thanks!
--pupil forever...------
User avatar
urgen
 
Posts: 624
Joined: Mon Nov 12, 2007 10:06 pm

Re: [Plugin]extrudeEdgesByEdges.rb

Postby REDS » Tue Jun 23, 2009 7:40 am

It`s very useful thing.
Thank`s :sketchstatic:
REDS
 
Posts: 1
Joined: Wed Apr 30, 2008 4:51 am

Re: [Plugin]extrudeEdgesByEdges.rb

Postby rv1974 » Tue Jun 23, 2009 7:52 am

Hi TIG! Instead\in addition to(?) of consistant orientation mode (in the center: extrudeEdgesByEdges.rb) It'd be perfect to get the one of profiles get turned along another one (the right example: push-pull+eraser)
Thanks.
Please, register (free) to access all the attachments on the forums.
rv1974
 
Posts: 523
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]extrudeEdgesByEdges.rb

Postby donkey_b » Tue Jun 23, 2009 8:15 am

it's GOOD thx
donkey_b
 
Posts: 5
Joined: Fri Aug 15, 2008 7:36 am

Re: [Plugin]extrudeEdgesByEdges.rb

Postby TIG » Tue Jun 23, 2009 8:29 am

rv1974 wrote:Hi TIG! Instead\in addition to(?) of consistant orientation mode (in the center: extrudeEdgesByEdges.rb) It'd be perfect to get the one of profiles get turned along another one (the right example: push-pull+eraser)
Thanks.

For that use followme tool or followme_and_keep script... add lines to the profile to make a face then erase the 'back' edges to make the shape required. EEbyE works with non-coplanar profiles and paths, and non-contiguous edges in paths and profile[as FAK] - which isn't possible with traditional followme...
TIG
User avatar
TIG
Global Moderator
 
Posts: 13992
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]extrudeEdgesByEdges.rb

Postby CadFather » Tue Jun 23, 2009 10:02 am

Hi TIG, Thank you for the gem..

could be me doing something wrong.. i noticed that if i draw a circle on any plane (as path) and an edge in elevation (profile), the script always considers the circle the path
Quarr-IT - SketchUp Training from the Master.. . ;) .
User avatar
CadFather
 
Posts: 809
Joined: Fri Nov 16, 2007 11:03 am
Location: London, Milano, Sicily
Name: Max Coppoletta

Re: [Plugin]extrudeEdgesByEdges.rb

Postby silver_shadow » Tue Jun 23, 2009 10:52 am

i wanted this soooo much
silver_shadow
 
Posts: 277
Joined: Fri Jun 06, 2008 8:11 am
Location: Cape Town, South Africa
Name: Jacques

Re: [Plugin]extrudeEdgesByEdges.rb

Postby Free Agent » Tue Jun 23, 2009 11:00 am

CadFather wrote:Hi TIG, Thank you for the gem..

could be me doing something wrong.. i noticed that if i draw a circle on any plane (as path) and an edge in elevation (profile), the script always considers the circle the path


thats because the the script doesnt rotate the profile along the path so it apears as if the circle is being extruded, to which TIG will reply: if you want that function use Follow Me or Follow me and Keep.

Tig: it seems people would really really like that function :) :thumb:
User avatar
Free Agent
 
Posts: 273
Joined: Thu Jun 05, 2008 10:00 am
Location: Cape Town, South Africa
Name: Sean

Re: [Plugin]extrudeEdgesByEdges.rb

Postby Pilou » Tue Jun 23, 2009 11:10 am

And if you want multiple curves along a path use "Simple-Loft" by Chris Fullmer ;)

The extrudeEdgesbyEgdes is for particular uses as sections are always parallel!
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
Pilou
Top SketchUcator
 
Posts: 10060
Joined: Wed Jan 23, 2008 10:33 pm
Operating system: Windows
SketchUp version: 6
License type: Free
SketchUp use: hobby
Level of SketchUp: Advanced

Re: [Plugin]extrudeEdgesByEdges.rb

Postby Dylan » Tue Jun 23, 2009 11:31 am

Thanks TIG, this is a big script and works so well :thumb:
Dylan
 
Posts: 1932
Joined: Mon Oct 22, 2007 1:41 pm
Location: Royston (Herts), UK
Name: Dylan Morton

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

Next

Return to Plugins

Who is online

Users browsing this forum: adid471, guenz, MattC and 7 guests