15 posts • Page 1 of 1
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
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
cycling LEFT / RIGHT ARROW
Last edited by a4chitect on Sun Apr 13, 2008 10:27 am, edited 9 times in total.
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
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?
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.
in what would it differ from weld.rb?
edson mahfuz, architect
Anyone can get you more for more, but it takes genius to get you more for less.
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)
visual feedback when welding
Last edited by a4chitect on Sun Apr 13, 2008 10:36 am, edited 1 time in total.
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!
15 posts • Page 1 of 1