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

    [Plugin] Vertex welding tool v1.2

    Scheduled Pinned Locked Moved Plugins
    15 Posts 10 Posters 40.9k Views 10 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.
    • J Offline
      JuanV.Soler
      last edited by

      Hi a4chitect,

      Thankyou for your efforts.

      What I´m trying to get is explained in the attached file, following the three scenes.

      I cant get your script running 😞


      Brilliant Point.skp

      ,))),

      1 Reply Last reply Reply Quote 0
      • W Offline
        watkins
        last edited by

        Dear a4chitect,

        Do you have to draw a box around each 'gap'? Suppose I imported a 2D CAD file with lots of small, but hard to see gaps (at corners for example). Would your script find and close all the gaps if I drew a box around the whole array of lines?

        Regards,
        Bob

        1 Reply Last reply Reply Quote 0
        • A Offline
          a4chitect
          last edited by

          yes, you would have to draw a 'fence' around each welding spot...
          if you want to have accurate results, I suggest you wait for me to add an option to weld at a certain point (not at the average center - as it is now).

          a script to weld all points within a certain treshold is very easy to code though, it should go through all points, for each of them measure the distance to every other and weld if the distance is below the treshold.

          1 Reply Last reply Reply Quote 0
          • A Offline
            a4chitect
            last edited by

            btw: it works only in perspective mode (due to the nature of vertex-selecting method)

            1 Reply Last reply Reply Quote 0
            • EdsonE Offline
              Edson
              last edited by

              @a4chitect said:

              a script to weld all points within a certain treshold is very easy to code though, it should go through all points, for each of them measure the distance to every other and weld if the distance is below the treshold.

              in what would it differ from weld.rb?

              edson mahfuz, architect| porto alegre • brasil
              http://www.mahfuz.arq.br

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

                It sounds more like CloseOpens - closing up the tiny gap between segments that should touch.

                RickW
                [www.smustard.com](http://www.smustard.com)

                1 Reply Last reply Reply Quote 0
                • H Offline
                  huyvuvn
                  last edited by

                  @rickw said:

                  It sounds more like CloseOpens - closing up the tiny gap between segments that should touch.

                  do you have comparison between them ?

                  happiness on the way, not in the destination.

                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    JuanV.Soler
                    last edited by

                    I think you´ve got it.
                    😄
                    Thanks

                    ,))),

                    1 Reply Last reply Reply Quote 0
                    • A Offline
                      a4chitect
                      last edited by

                      v 1.12

                      small update
                      welds to lowest point optionally
                      welds to a construction point which is part of the original selection

                      note: still works in perspective mode only (but the switch to perspective and back is automatic)

                      v 1.2

                      visual feedback when welding

                      1 Reply Last reply Reply Quote 0
                      • T Offline
                        Thiefsie
                        last edited by

                        How do you keep this plugin going after you have done it once?

                        I'm able to use it easily enough but having to reselect the tool every time (I have heaps of tiny gaps in a model) is a real pain. Is there a shortcut or even a function of the tool just continuing to work after the previous operation it does.

                        Combined with Stray Lines functionality and the ability to keep Vertex Welding would speed things up immensely, probably close to CloseOpens. (Without the pay too)

                        Also... on another note, after welding to vertices together, how come the line isn't seen as one line by sketchup, rather staying to separate lines. The gap is closed but the vertices aren't 'welded' together as such? Is that normal?

                        Thanks for a very useful plugin otherwise!

                        1 Reply Last reply Reply Quote 0
                        • T Offline
                          trinhsongoku
                          last edited by

                          @a4chitect said:

                          FUNCTIONALITY: it welds vertices (moves them to one spot and tries to weld colinear edges) selected by a 'fence' (thx to whaat for lot of lines of code)

                          USAGE NOTE: select all geometry you want to weld prior to launching the script, then choose the vertices to weld by drawing a virtual 'fence'

                          NOTE 4 RUBY CODERS: script is pretty dirty but the main part is useful for selecting vertices in view - feel free to use it

                          licence: your only duty is to share any improvements and/or upgrades of this code under this same condition

                          thanks to Juan V Soler for inspiration to make this

                          [attachment=1:3ism2iv0]<!-- ia1 -->vertex-weld-result.png<!-- ia1 -->[/attachment:3ism2iv0]

                          History
                          12.04.2008 v1.2
                          *now it lets you specify your welding spot by cycling through all possible positions

                          Plugins/Vertex Weld (From Selection) -> Weld with Feedback
                          specify weld region with your mouse
                          [i]then*
                          cycling LEFT / RIGHT ARROW
                          confirm ENTER[/i]

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

                          Advertisement