[Plugin] Vertex welding tool v1.2

[Plugin] Vertex welding tool v1.2

Postby a4chitect » Tue Apr 08, 2008 7:01 pm

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

vertex-weld-result.png


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]
0
Last edited by a4chitect on Sun Apr 13, 2008 10:27 am, edited 9 times in total.

a4chitect 
PluginStore Author
PluginStore Author
 

Re: vertex welding tool v1.0

Postby kwistenbiebel » Tue Apr 08, 2008 7:10 pm

What exactly is the result of 'welding vertices'?
Maybe a little example could clarify.
0

kwistenbiebel 
 

Re: vertex welding tool v1.01

Postby a4chitect » Tue Apr 08, 2008 7:34 pm

please redownload, 1.02 works inside groups
kwistenbiebel: I have added an example, the idea was to let the script weld those impossible-to-zoom-to but not identical two points
0

a4chitect 
PluginStore Author
PluginStore Author
 

Re: vertex welding tool v1.02

Postby Whaat » Tue Apr 08, 2008 8:29 pm

Cool script! Glad you could sort through my sloppy code and find something useful! Thanks for the credit!
0

Whaat 
PluginStore Author
PluginStore Author
 

Re: vertex welding tool v1.02

Postby JuanV.Soler » Wed Apr 09, 2008 11:45 am

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 :(
0
_,_)))_,_

JuanV.Soler 
 

Re: vertex welding tool v1.02

Postby watkins » Wed Apr 09, 2008 2:15 pm

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
0

watkins 
 

Re: vertex welding tool v1.02

Postby a4chitect » Wed Apr 09, 2008 8:12 pm

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.
0

a4chitect 
PluginStore Author
PluginStore Author
 

Re: vertex welding tool v1.02

Postby a4chitect » Thu Apr 10, 2008 4:01 pm

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

a4chitect 
PluginStore Author
PluginStore Author
 

Re: vertex welding tool v1.02

Postby Edson » Thu Apr 10, 2008 11:41 pm

a4chitect wrote:
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?
0
edson mahfuz, architect
http://www.mahfuz.arq.br

Anyone can get you more for more, but it takes genius to get you more for less.
User avatar
Edson 
Global Moderator
 

Re: vertex welding tool v1.02

Postby RickW » Fri Apr 11, 2008 12:05 am

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

RickW 
 

Re: vertex welding tool v1.02

Postby huyvuvn » Fri Apr 11, 2008 6:59 am

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


do you have comparison between them ?
0
happiness on the way, not in the destination.

huyvuvn 
 

vertex welding tool v1.2

Postby a4chitect » Sat Apr 12, 2008 6:51 pm

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
0
Last edited by a4chitect on Sun Apr 13, 2008 10:36 am, edited 1 time in total.

a4chitect 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Vertex welding tool v1.2

Postby JuanV.Soler » Sun Apr 13, 2008 10:34 am

I think you´ve got it.
:D
Thanks
0
_,_)))_,_

JuanV.Soler 
 

Re: [Plugin] Vertex welding tool v1.2

Postby Thiefsie » Mon Nov 17, 2008 1:59 am

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!
0

Thiefsie 
 

Re: [Plugin] Vertex welding tool v1.2

Postby trinhsongoku » Mon Feb 27, 2012 3:37 am

:berserk:
a4chitect wrote: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

vertex-weld-result.png


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]
0

trinhsongoku 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Ad Machine 
Robot
 



 

Return to Plugins

Who is online

Users browsing this forum: Bing [Bot], Denis n1, mac1, max8167, Oxer, panixia, Yahoo Bot and 8 guests

Visit our sponsors: