sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    [Plugin] Extrude Edges by Rails

    Scheduled Pinned Locked Moved Plugins
    381 Posts 71 Posters 341.6k Views 71 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • TIGT Offline
      TIG Moderator
      last edited by

      I've tested DeBabelizer myself and I seem to get no significant speed affects - db only kicks in when db"text" is to be shown - however, renaming the ...EN-US.lingvo file will stop it being read at all, and so it might marginally speed it up - It won't affect anything else if you are using ENglish anyway ?
      Alternatively you could always edit the script itself and do a find and replace for "db">>"", but leave the def db()...end#def alone...

      I think you probably need to use vanilla FollowMe or perhaps ' FollowMe and Keep' to make these rounded edges - EEbyRails is perhaps too complex for this ?

      TIG

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        @dicoy88 said:

        why is it that when i try the plug in this is what i got, no success at all.

        Are you using the latest version?
        Have you made three Arcs or Welded the Edges into Curves?

        The form you have shown works readily...SimpleEEbyR.skpSimpleEEbyR.png

        TIG

        1 Reply Last reply Reply Quote 0
        • dicoy88D Offline
          dicoy88
          last edited by

          @tig said:

          @dicoy88 said:

          why is it that when i try the plug in this is what i got, no success at all.

          Are you using the latest version?
          Have you made three Arcs or Welded the Edges into Curves?

          The form you have shown works readily...[attachment=1:3p46zpil]<!-- ia1 -->SimpleEEbyR.skp<!-- ia1 -->[/attachment:3p46zpil][attachment=0:3p46zpil]<!-- ia0 -->SimpleEEbyR.png<!-- ia0 -->[/attachment:3p46zpil]

          Yes i've done it all exept that im still using the SKP6. I didnt use SKP7 yet coz my Vray is for Skp6.

          1 Reply Last reply Reply Quote 0
          • TIGT Offline
            TIG Moderator
            last edited by

            It should work OK with v6 and v7...
            I no longer have v6 available after a HD fry-up!
            Please try the thing again, but with the Ruby Console open and send us any errors that get reported - they might help pinpoint the problem and fix it...

            TIG

            1 Reply Last reply Reply Quote 0
            • boofredlayB Offline
              boofredlay
              last edited by

              John, would you kindly explain the steps you are following to get that result?
              Thanks.

              http://www.coroflot.com/boofredlay

              1 Reply Last reply Reply Quote 0
              • boofredlayB Offline
                boofredlay
                last edited by

                Thanks John. The step I was getting confused on was dividing the legs of the square (rectangle). The skp you posted came in un-welded and a bit disjointed which added to my confusion. See image. I got it now. This is a much welcomed script, thanks TIG. And thanks again John.


                X.jpg

                http://www.coroflot.com/boofredlay

                1 Reply Last reply Reply Quote 0
                • JClementsJ Offline
                  JClements
                  last edited by

                  1. Create circle, be conscious of the number of segments (use a multiple of 4). This one has 16 segments.
                  2. Create rectangle and divide each edge into 4 segments. Select all 16 edges and weld.
                  3. Position and rotate circle.
                  4. Add a few constuction points to define where a connecting curve would have to bend 90° (you could carefully determine specific locations, I just guesstimated), these will serve as snapping points for Steps 5 and 6.
                  5. Use the BezierSlineCurve script to draw a "Classic Bezier curve" from center of circle to a "halfway point" between it and the square. Draw a second bezier curve from that point down to the center of the square.
                  6. Explode each bezier curve. Select the resulting segments and Weld them to form a path (actually a "Profile" per the terminology of TIGs script.
                  7. Run the TIGs script. Select the select the path, the rectangle and the circle are to be regarded as "Rails" so click on each once.
                  8. Answer the script prompts. Answer "No" to the last prompt to "Erase Original Lines".
                  9. Select the square and add a face. Do the same for circle. Extrude both.

                  John | Illustrator | Beaverton, Oregon

                  1 Reply Last reply Reply Quote 0
                  • JClementsJ Offline
                    JClements
                    last edited by

                    TIG,

                    I hope people appreciate what this script is capable of.

                    Think of the time it would take to create something like this without it.

                    [EDIT] the attached .skp has been update with a welded, 16 segment square.

                    X.png


                    X.skp

                    John | Illustrator | Beaverton, Oregon

                    1 Reply Last reply Reply Quote 0
                    • TIGT Offline
                      TIG Moderator
                      last edited by

                      Actually I do appreciate the confusion between 'Profile' and 'Rails' !
                      😕
                      Think of the 'Profile' as the thing that is repeated around the Rails, and and the Rails the Curves that are followed.
                      On this example the central curved 'Path' is actually the Profile and it is repeated around the two Rails formed by the Square/Circle !!!

                      To get another perspective on this think of the Square and Circle Curves as the Rails - i.e. the Paths to be followed.
                      Now copy your central 'Path' curve and snap its top-end to the bottom vertex of the Circle Rail.
                      Now it looks more like a 'Profile' doesn't it ?
                      A Profile's location is somewhat academic - it's the nearest of its ends to the Rails' nodes that affects the twist in the mesh.
                      The copied Profile's top-end is now linked to a vertex in the Circle - that will be taken as that end's linked point for starting the mesh on that Rail.
                      At its bottom end the Profile will be linked to the nearest point in the bottom Square Rail - after it is divided to match the Circle's Segment count.
                      By inspection it can be seen that it will be the mid-point of the edge of the Square nearest to the Profile...
                      Now use EEbyRails: pick the copy of the 'Path' as the 'Profile' then the Rails in turn. The result will be as you already have made...

                      However, I think that in this version the Circle/Square Curves are more clearly Rails and the central Curve is more obviously a Path...

                      Another perplexion is when three curves connect at each of their end-vertices. Picking any of them in turn will produce a very similar looking curved shape in each case, BUT the three possible Profiles [the first Curve picked] will look slightly different, because the other two Curves that are used as Rails will meet at an 'Apex' opposite the Profile's location...
                      See the examples in my earlier SKP for details...

                      TIG

                      1 Reply Last reply Reply Quote 0
                      • thomthomT Offline
                        thomthom
                        last edited by

                        Nice little tool.

                        But all the messageboxes, can't they instead be made into a single UI.Inputbox ?

                        Thomas Thomassen — SketchUp Monkey & Coding addict
                        List of my plugins and link to the CookieWare fund

                        1 Reply Last reply Reply Quote 0
                        • JClementsJ Offline
                          JClements
                          last edited by

                          Thom, some of the prompts are conditional upon how the surfaces turnout after a particular step and require user evaluation. They would have to be independent wouldn't they?

                          John | Illustrator | Beaverton, Oregon

                          1 Reply Last reply Reply Quote 0
                          • thomthomT Offline
                            thomthom
                            last edited by

                            I should have figured there was a reason for they way it was.

                            Thanks for the tip on commenting out some of them.

                            Thomas Thomassen — SketchUp Monkey & Coding addict
                            List of my plugins and link to the CookieWare fund

                            1 Reply Last reply Reply Quote 0
                            • TIGT Offline
                              TIG Moderator
                              last edited by

                              These dialogs / questions are conditional on earlier answers / results, BUT I understand that several prompts could perhaps be seen as annoying...

                              However, if you know you want to answer 'No' to all of these questions then you can just press the N key several times and you're done - no need to navigate to and pick on buttons with the mouse etc... Alternatively, if you know that say the 'Smooth?' dialog is to be a 'Yes', then press Y at that prompt instead !

                              EEbyRails does things that would take your may hours to reproduce manually - if you could do them at all - so I don't really think that a few prompts asking if you want to do some extra things at the end is too much trouble - as I said you don't even need to pick buttons, just press the Y or N keys...
                              It would be possible to have a more basic tool without most of these questions - the user could then use other built-in or third-party tools to Reverse-Faces, Intersect-with-Self, Erase-Coplanar-Edges, Smooth-Mesh or Erase-Original-Curves: I just added them for convenience. The first option for Reversing-Rail1 does help in some twisted situations and can't be reproduced otherwise...

                              If a user doesn't want any of these options the script is easily editable to skip them simply add a =begin around line 432 and a =end around line 491 to jump past them to near the end... I can even add them, disabled with a leading # in the next release - then users can just remove the 2 # and then they get no more prompts beyond the 'untwist' one...

                              🤓

                              TIG

                              1 Reply Last reply Reply Quote 0
                              • I Offline
                                ionandre
                                last edited by

                                Dear Tig,

                                what do you think about implementing the possibility to select a single line as well for the profile and not only a curve.
                                This would be very helpfull for the creation of complex models like cars for example. In such cases the division of the line in two segments is really undesired and would generate too many poligons.

                                Ionandre

                                1 Reply Last reply Reply Quote 0
                                • TIGT Offline
                                  TIG Moderator
                                  last edited by

                                  @ionandre said:

                                  Dear Tig,
                                  what do you think about implementing the possibility to select a single line as well for the profile and not only a curve.
                                  This would be very helpful for the creation of complex models like cars for example. In such cases the division of the line in two segments*** is really undesired and would generate too many poligons.
                                  Ionandre

                                  ***A Curve CAN have one Segment.
                                  You can just make one...
                                  Draw the required single Line profile [or rail].
                                  Draw another short piece of random Line off one end of it.
                                  Select both Lines.
                                  Use 'Weld' to make them into a Curve [Weld.rb is an invaluable script and very quick if you set e.g. J as your shortcut for this =Join].
                                  Draw another piece of short temporary Line off the new Curve's centre-vertex and it'll split the Curve into individual Segments.
                                  Erase the unwanted Curve Segment then the temporary Line.
                                  Now you have a one Segment Curve to use as you will...

                                  My 2D Tools lets you draw Polylines as a toggled option [Alt] in the Line Tool - these can also be a single Segment long - however the default is for them to be flat in 2D, although you can reset the Z-height as you go I think there are better ways of making these single Segment Curves...

                                  Some other tools like the BZ-toolbar let you draw 'Polylines' in 3D - these can also be just one Segment long, but are still 'Curves' and work in EEbyRails.
                                  If you want several separate Line Segments then I suggest this BZ-Polyline method is the quickest - just drawing individual pieces as needed...

                                  EEbyRails must have 3 curves picked in order - it would be too awkward to add lines into the mix... - but there are several easy ways to use one Segment Curves too...

                                  TIG

                                  1 Reply Last reply Reply Quote 0
                                  • G Offline
                                    gaonirico
                                    last edited by

                                    It will be possible this plugin maneuvers to "two path X two rails "?
                                    As an initial path and a final path for the two rails.
                                    Which it would produce accuracy for the continuity of several meshes.
                                    Iam spanish, pardon my English language.

                                    1 Reply Last reply Reply Quote 0
                                    • Bob JamesB Offline
                                      Bob James
                                      last edited by

                                      Here's my shot at using this tool. It took me quite a while to figure out the sequence of things that worked for me:

                                      Draw the two paths using Bezier Splines.
                                      Convert them using Polyline Segmentor to both have the same number of segment.
                                      Use EEbR.

                                      I subsequently fixed the "seam" and the sharp transition near the front, but was too lazy to re-color it.

                                      I never could figure out how to do the nose cap 😞


                                      Rendered with Twilight


                                      Rendered with Twilight


                                      Rendered with Twilight

                                      i7-4930K 3.4Ghz, 2x GTX780 6GB, 32GB DDR3-1600 ECC, OCZ Vertex 4 500GB, WD Black 3TB, 32TB NAS, 4x 27" Monitors, SpaceMouse Pro, X-keys XK-60

                                      1 Reply Last reply Reply Quote 0
                                      • TIGT Offline
                                        TIG Moderator
                                        last edited by

                                        I'm thinking about ExtrudeEdgesByRails2 but it's some way of...

                                        TIG

                                        1 Reply Last reply Reply Quote 0
                                        • TIGT Offline
                                          TIG Moderator
                                          last edited by

                                          Here's an example of making a 'nose-cone' with EEbyRails...NoseConeEEbyRails.pngNoseConeEEbyRails.skp

                                          TIG

                                          1 Reply Last reply Reply Quote 0
                                          • CarrozzaC Offline
                                            Carrozza
                                            last edited by

                                            WOW!

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 10
                                            • 11
                                            • 12
                                            • 13
                                            • 14
                                            • 19
                                            • 20
                                            • 12 / 20
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement