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

    [Plugin] TIG.splitsausage

    Scheduled Pinned Locked Moved Plugins
    38 Posts 14 Posters 41.2k Views 14 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 Online
      TIG Moderator
      last edited by

      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 PayPalButton ###
      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.
      2.0 20160818 Now comes in the SplitTOOLS RBZ. No longer installed separately.

      http://forums.sketchucation.com/viewtopic.php?p=386658#p386658

      TIG

      1 Reply Last reply Reply Quote 0
      • GaieusG Offline
        Gaieus
        last edited by

        πŸ‘ Now I can split my sausage... πŸ˜„

        Gai...

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

          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

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

            πŸ˜†
            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

            1 Reply Last reply Reply Quote 0
            • Rich O BrienR Online
              Rich O Brien Moderator
              last edited by

              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?

              Download the free D'oh Book for SketchUp πŸ“–

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

                Here is v1.1 http://forums.sketchucation.com/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. http://forums.sketchucation.com/viewtopic.php?p=386658#p386658
                Capture.PNG

                TIG

                1 Reply Last reply Reply Quote 0
                • K Offline
                  Khai
                  last edited by

                  oh my. you are brilliant... no more doing this by hand πŸ’š

                  1 Reply Last reply Reply Quote 0
                  • Dave RD Offline
                    Dave R
                    last edited by

                    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.


                    Sausage.png

                    Etaoin Shrdlu

                    %

                    (THERE'S NO PLACE LIKE)

                    G28 X0.0 Y0.0 Z0.0

                    M30

                    %

                    1 Reply Last reply Reply Quote 0
                    • Dave RD Offline
                      Dave R
                      last edited by

                      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?

                      Etaoin Shrdlu

                      %

                      (THERE'S NO PLACE LIKE)

                      G28 X0.0 Y0.0 Z0.0

                      M30

                      %

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

                        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

                        1 Reply Last reply Reply Quote 0
                        • Dave RD Offline
                          Dave R
                          last edited by

                          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.

                          Etaoin Shrdlu

                          %

                          (THERE'S NO PLACE LIKE)

                          G28 X0.0 Y0.0 Z0.0

                          M30

                          %

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

                            Sorry, I misinterpreted the form, it looks like a 3d surface because you showed it 'upside down'... The other view explained it πŸ˜’
                            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

                            1 Reply Last reply Reply Quote 0
                            • Dave RD Offline
                              Dave R
                              last edited by

                              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.

                              Etaoin Shrdlu

                              %

                              (THERE'S NO PLACE LIKE)

                              G28 X0.0 Y0.0 Z0.0

                              M30

                              %

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

                                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

                                1 Reply Last reply Reply Quote 0
                                • Dave RD Offline
                                  Dave R
                                  last edited by

                                  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.

                                  Etaoin Shrdlu

                                  %

                                  (THERE'S NO PLACE LIKE)

                                  G28 X0.0 Y0.0 Z0.0

                                  M30

                                  %

                                  1 Reply Last reply Reply Quote 0
                                  • N Offline
                                    numerobis
                                    last edited by

                                    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 πŸ˜„

                                    1 Reply Last reply Reply Quote 0
                                    • R Offline
                                      rv1974
                                      last edited by

                                      This splitter would UNDOUBTEDLY become megahitif it additionally could align pre-applied textures along edges. πŸ˜’

                                      1 Reply Last reply Reply Quote 0
                                      • N Offline
                                        numerobis
                                        last edited by

                                        @rv1974 said:

                                        This splitter would UNDOUBTEDLY become megahitif it additionally could align pre-applied textures along edges. πŸ˜’

                                        http://sketchucation.com/forums/viewtopic.php?f=323&t=44552&hilit=thrupaint
                                        πŸ˜‰

                                        1 Reply Last reply Reply Quote 0
                                        • S Offline
                                          smicha
                                          last edited by

                                          TIG,

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

                                          Sebastian

                                          https://lh4.googleusercontent.com/-6kEbBbV6D2s/UTHByEhQVjI/AAAAAAAAC7k/gqQD2RbxgyU/s927/splitsausage.jpg

                                          1 Reply Last reply Reply Quote 0
                                          • S Offline
                                            smicha
                                            last edited by

                                            Sorry TIG,

                                            I just didn't select the edge - it works like a charm.

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement