Close Gaps Script
-
Hi Everyone
Does anyone know if there is a ruby script available that joins two end points that are not touching to create a face?
Basically I have a large plan with hundreds of roads on it, however all along the roads there are gaps in the lines which need joining. This will be a very long task to do by hand so I wondered if there was a script that joins lines together? Not sure if I've explained myself very well there!
Any help would be really appreciated.
Cheers
Andy
-
Search Smustard.com for 'close': which returns 2 scripts that will help, priced reasonably at $20 each...
Also search 'faces' >> 'MakeFaces' - this one is free but needs the gaps 'healing' first... -
If you have just one segment missing there is Weld plug who close the gap
but as you must answer at the question do you want "close the curve" and "do you want make a surface" that is not so speedy -
I typicaly weld the segments and then use skin to close it, then soften/ smooth the result. All those plugins are found on the visable on the plugins thread.
-
There is also a repair_broken_lines rb but have not used but, maybe a candidate for you. Sorry don't have the url
-
-
It takes time to write a scipt like this and there is not much incentive to re-write it since it already exists.
I prefer to use label stray lines plugin from smustard. It puts a text label on every line end that does not meet up with another line (therefore it is a broekn line). Then I go through and manually connect them all. Its much more time intensive, but it is a free alternative. And I like having control of how the line ends get connected.
Chris
-
I don't think that repair_broken_lines.rb will close gaps. It looks like it just replaces collinear connected edges with a single edge.
Sounds like an interesting problem. I'm surprised that there isn't a free script to solve it.
Advertisement