Login  Register

Joining or combining arcs, lines, etc.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
14 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Joining or combining arcs, lines, etc.

1940LaSalle
9 posts
FIRST: I hope this is in the right area. If this isn't the right area for "how do I..." questions, would a moderator please move it and let me know where it belongs? Thanks.

That said, I want to use LibreCAD for font design. As such, I'd want to generate closed contours made from line segments, arcs, and the like. In AutoCAD, there's the "JOIN" command that fuses two or more such entities into a single entity. I don't see how to do it in LibreCAD. Please advise.  Thanks.
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Joining or combining arcs, lines, etc.

arquisa
10 posts
Tools > Polyline> Create polyline from existing segments > click on the line segments and voila
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Joining or combining arcs, lines, etc.

1940LaSalle
9 posts
Boy, that was fast.

I'll give it a shot and advise how I fared. Thanks.
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Joining or combining arcs, lines, etc.

1940LaSalle
9 posts
Turns out that wasn't quite what I had in mind. Let's say I draw a shape consisting of line segments, circular arcs, and / or elliptic arcs that intersect. What do I do to transform this collection of pieces into a single closed curve which may then have hatching applied?
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Joining or combining arcs, lines, etc.

dellus
1722 posts
Hatching does not work on intersected lines. The ends must meet.
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Joining or combining arcs, lines, etc.

1940LaSalle
9 posts
I get that from AutoCAD experience. Perhaps I should have asked how one joins lines/arcs/etc. such that the endpoint of one such item coincides precisely with the start point of the next.
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Joining or combining arcs, lines, etc.

dellus
1722 posts
You can use Trim or Trim Two to join ends or cut overshots (intersections). But can be tricky with arcs/ellipse arcs. Sometimes doesn't work.
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Joining or combining arcs, lines, etc.

fa201
154 posts
The feature does not exist. It was already requested : https://github.com/LibreCAD/LibreCAD/issues/1129.
Polyline works fine if you deal only with lines. If it is a mix of curves and lines then polyline cannot help.
Fabrice

French hobbyist interested in 2D design.
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Joining or combining arcs, lines, etc.

=mike=
1 post
In reply to this post by 1940LaSalle
It doesn't work for me at all.  It says, "Choose one of the segments on the original polyline".  There is no original polyline: I'm trying to make one from existing segments.  When I click on a segment, nothing happens; no new instructions.
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Joining or combining arcs, lines, etc.

dellus
1722 posts
It seems as if nothing happens, but if you click on a segment all consecutive elements will become a polyline. Cancel then and check with selecting again.
Yes, the instructions are misleading.
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Joining or combining arcs, lines, etc.

Gary S
152 posts
In reply to this post by =mike=
You can also first select all the line segments to be joined and then click "Create polyline from existing segments".  It is easier to see what line have been selected.  All of the consecutive selected segments will become a polyline.
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Joining or combining arcs, lines, etc.

LeatherCad
1 post
In reply to this post by 1940LaSalle
I am astonished at the number of functions that simply do NOT work in this program. This being one of them.
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Joining or combining arcs, lines, etc.

dxli
1977 posts
This post was updated on Apr 02, 2024; 3:22am.
In reply to this post by dellus
For trimming, we may want to handle tangential cases by allowing small moving of the end point.

I found the current behavior is to literally do trimming only, then the end user has no idea why trimming failed.

To allow hatching by intersecting edges should be supported, for convenience and to naturally handle self-intersecting contours. The amount of work is heavy though, because we may have to maintain some edge curves by the hatch objects.

For small gaps between curves, an error should be reported with the location of the gap.

The similar should be done in the case of self-intersecting contours, to inform the user the location of the problem, but this is harder.


dellus wrote
You can use Trim or Trim Two to join ends or cut overshots (intersections). But can be tricky with arcs/ellipse arcs. Sometimes doesn't work.
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Joining or combining arcs, lines, etc.

flywire
284 posts
In reply to this post by LeatherCad
LeatherCad wrote
I am astonished at the number of functions that simply do NOT work in this program.
It would be much more useful to provide a list of failing functions for a dev to work through rather than express your astonishment.