Jump to content

Sign in to follow this  
DoedelDave

Merging multiple lines into one

Recommended Posts

Hey guise,

 

Is there a quick way to merge a line consisting of A LOT (ca. 3000) single line segments into one joined line?

The points of each segment are perfectly on top of each other, but they are not joined. I could join segments / weld them manually but that would take up a lot of time.

 

Is there a quick way to do that?

 

Thanks,
Dave

 

Coastline.c4d

Share this post


Link to post

Unfortunately Cinema lacks that functionality (neither optimize, connect or spline mask will solve this) so people end up writing python scripts that will do it for them like this one. Unfortunately the link to that doesn't work any more, so you are looking for an alternative to that. 

 

CBR

Share this post


Link to post

Thanks for the advice!

Share this post


Link to post

If you have the CV artsmart plugin you can copy into illustrator and do a join command after hi lighting all the points. You can then save as AI V8 and open in cinema in usual way.

In theory you can export to AI from cinema but Ive never got that to work.

Converted file below.

Deck

 

CoastlineJOINEDinAI.c4d

Share this post


Link to post

Thanks deck, that's great!

I will have a look into that plugin. Glad I did not start welding manually yet. 😉

Share this post


Link to post

I think you need to be a member of cinevercity for the plugin, usually comes with cinema I think, but Im a bit out of touch with that.

Deck

Share this post


Link to post

You don't need any plugins.  Here is how you do it.

 

1) Place the spline under an extrude under a connect:

image.png.938b7e39debc7c04133407717c07a4ba.png

Extrude the spline by a huge amount in the Y axis (like 2000 cm)

image.thumb.png.d5f5da303fbba3cfaf13d29e6ffeb0a1.png

Then hit current state to object.  That should give a set of connected polygons.  Use a rectangular selection in a side view and ONLY select the bottom plane of polygons.  With that selection, then hit "Edge to spline".  You should now have your connected spline as well as you extruded polygons.

 

See attached;

 

Coastline-connected.c4d

 

I hope that helps.

 

Dave

Share this post


Link to post

That's even better. Thanks Dave!

Share this post


Link to post
5 minutes ago, 3D-Pangel said:

 

 

I hope that helps.

 

Dave

Brilliant 🙂 I shoulda thought of that, but  obviously had early morning brain-fog 🙂

 

CBR

Share this post


Link to post
10 minutes ago, Cerbera said:

Brilliant 🙂 I shoulda thought of that, but  obviously had early morning brain-fog 🙂

 

CBR

Your coffee depletion aside, coming from you that comment to me is high praise.  Printing that one out and putting in the refrigerator!!!  😀

 

Glad I could help.

 

Dave

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...