Connecting touching lines or points...

Connecting touching lines or points...

Postby MarkEMark » Mon Nov 02, 2009 1:19 am

Hi All:

I am importing a DXF file of an airfoil. The airfoil came in with many individual lines that defined the parts of the airfoil and I need to connect all of the little lines into one line so I can make a face out of the lines that define the individual parts.

I really don't want to redraw the airfoil/rib part in SU, but will if I can't figure out how to join all of the line segments into one line.

Any plug ins that will to this? Using the "Select all Connected" selects the whole rib as it is all connected...

See attached for a drawing of the rib...

Thanks for the help!

Mark
1

MarkEMark 
 

Re: Connecting touching lines or points...

Postby Rich O Brien » Mon Nov 02, 2009 1:27 am

Have you tried the weld plugin?
0
There's a frontroom and a backroom....reverse faces
User avatar
Rich O Brien 
Administrator
 

Re: Connecting touching lines or points...

Postby MarkEMark » Mon Nov 02, 2009 1:46 am

Yes, I have. The weld plugin is what I want to use, but my main problem is actually selecting all of the touching points that make up the line I want to 'weld' together. I am not sure there is a plugin that will be out there, as it is similar to the Select All Connected, and I am not sure how the plugin would know which lines 'connected' you would want to be selected...

Looking at the file I uploaded you can see all of the "sticks" that make up the airfoil. However, the outlines are made of several little lines and I want to convert them into a connected line. Just fishing to see if there is a plugin that I have missed that would select them so I can "weld" them with the weld.rb

Thanks!
0

MarkEMark 
 

Re: Connecting touching lines or points...

Postby xrok1 » Mon Nov 02, 2009 2:43 am

if you delete these two segments, you can then select one piece on the perimeter then right click select all connected then weld. you can draw the the pieces back in later or better yet cut/paste in place them. follow this work flow for the rest and you should be fine. thetrick is to isolate the parts you want to select that way select connected will work for ya instead of agin' ya. :lol:
0
“There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

http://www.Twilightrender.com try it!

xrok1 
 

Re: Connecting touching lines or points...

Postby xrok1 » Mon Nov 02, 2009 3:17 am

you know what would be nice though is an eraser tool that welds instead of erasing! :idea:

meanwhile lets just keep bugging thomthom to expand his selection toys. :P
0
“There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

http://www.Twilightrender.com try it!

xrok1 
 

Re: Connecting touching lines or points...

Postby MarkEMark » Mon Nov 02, 2009 4:32 am

Hey xrok1!!

Have you ever had one of those head slappin', ah HA moments where you wished you were smart enough to have seen the obvious??

To quote Home Simpson, Doughhhp!

I think your suggestion will work wonders for me. Eliminating and then re-drawing the little lines is much faster and simpiler than waiting for the 'perfect' plug in ;)

Thanks for the help!!

Mark
0

MarkEMark 
 

Re: Connecting touching lines or points...

Postby xrok1 » Mon Nov 02, 2009 4:39 am

Have you ever had one of those head slappin', ah HA moments where you wished you were smart enough to have seen the obvious??


ONE...? yeah one too many. :roflmao:
0
“There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

http://www.Twilightrender.com try it!

xrok1 
 

Re: Connecting touching lines or points...

Postby TIG » Mon Nov 02, 2009 11:28 am

Here's a fixed version - using several techniques...
I changed the Style to show end-points
First I moved the lines up in the Z and drew a large rectangle below then at 0.
Then I used the Sandbox Drape tool to make sure it was all projected 'flat' down onto the rectangle [could have used a Flatten script].
I erased the original line-work that was up in the air.
Many of the draped lines formed edges to faces, splitting up the rectangle - we know these are OK.
Then I used the make-face tool on the remaining thick 'profile' edges - it's easier to see against a face - to make some more edges definitely joined up.
Since joined up edges make faces and stop showing as thick profiles we know most are now OK too.
Zoom into the ends of some of the reluctant thick 'profiles' revealed that there are small gaps - there are several options here:- 1) Make sure nothing is selected and use Move on a vertex to snap it to the intended destination vertex: 2) Use my 2Dadjust tool to extend the line(s) so the meet: 3) Redraw a bit of edge over the problem line - the end-points showing help here as there are seemingly straight lines made of many segments. There was another seeming connected diagonal brace line that just refused to split the face, so I simple drew over it and the face split straight off.
Now I have a set of connected edges - no 'profile' edges left...
Erase the 4 outer rectangle edges.
Delete the unwanted faces - again there are several ways of doing it:- 1) Use a script as I did: 2) If you've no script then change the Style NOT to display edges then select the visible faces by fence and delete them [don't double click on a face as it'll selected the unseen edges too !], switch the edges back on: etc...
Set the Style back as you want it...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: Connecting touching lines or points...

Postby Hecatonicosahedroid » Sat May 18, 2019 3:27 am

I know this is a super old post but it's one of the first things that comes up when searching for this issue so I'm going to post what I think is the best solution: the Select Curve extension by ThomThom

https://extensions.sketchup.com/pl/cont ... curve-tool

This extension lets you select all lines that are connected by their endpoints with a single click. It's very powerful when combined with FredoCorner, as it easily lets you select an entire edge without selecting every edge that's part of that face. Sometimes you want to round the outside edge of a solid without rounding the inner edges.

Anyway, I hope this helps!
-Heca
0

Hecatonicosahedroid 
 

Re: Connecting touching lines or points...

Postby mariocha » Mon Sep 23, 2019 6:47 pm

Yea TT Select Curve is great.
But I have come across a modeling request where I need it to continue selecting past an intersection. similar to a ring select.
Searching ....
0
Mario C.
Certified SketchUp Trainer, QC CA.
Every rule has exceptions, but some.
User avatar
mariocha 
Premium Member
Premium Member
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Developers' Forum

Who is online

Users browsing this forum: No registered users and 2 guests

Visit our sponsors: