Removal of overlapping lines or stacked lines of different lengths

Drop in here to discuss whatever you want.

Moderator: andrew

Post Reply
John Hyslop
Premier Member
Posts: 202
Joined: Mon Sep 30, 2019 6:21 am
Location: Melbourne - Australia

Removal of overlapping lines or stacked lines of different lengths

Post by John Hyslop » Sat Dec 14, 2019 4:37 am

Hi Andrew
I know qcad has some clean up tools to remove duplicate lines and zero length lines..how hard would it be to implement the following..
1: remove stacked lines and arcs of different lengths and leave the longest length as 1 line or arc?
2: join connected or overlapping lines that could be drawn as 1 line.? ( and arcs also )

I can remove entities as described above by creating a polyline say of a perimeter then moving the polyline and deleting the left over segments..

I sometimes have to go through this process if someone has supplied a file to me to clean up for laser cutting...

Just some food for thought...

Cheers
John
PS by stacked I mean entities laying on top of each other of varying lengths...hope this makes sense..
IF IT IS TO BE IT IS UP TO ME [ Ten most powerful 2 letter words ]

CVH
Premier Member
Posts: 775
Joined: Wed Sep 27, 2017 4:17 pm
Location: Belgium; Antwerp

Re: Removal of overlapping lines or stacked lines of different lengths

Post by CVH » Sat Dec 14, 2019 9:36 am

John,
Indeed: knowing what the customer wants is one.
Cleaning out the crab is usually the next hurdle.
Gave it many thoughts tough. :|
Instead I have a certain workflow and it will take time.

1)
It is something many look for in 'Detect Duplicates'.
It will not find stacked lines of different lengths, interconnected or not.
'Detect Zero' or detect 'Z..short' can help when you have an idea of what is the meaningful shortest.
In such a process I usually don't delete but set aside.
Quite dangerous to let the soft decided what to trow away.
A very clever heuristic routine is needed to find out what is meaningful.
My use is mostly artistic, yours probably sheet metal.

But I'll vote for this! :P

2)
Again, not that obvious to let the soft decided what to keep.
For this I 'mis'-use the difference of:
> OG find connected strings of segments to poly.
This doesn't join any segments, it only concatenate them.
> OC poly from selection of my choise.
This can join some segments (but also can add connecters).
Together with a appropiate steep tolerance, temporary layers, OS, ON and Explode.
After some cleaning leftovers one has his goal.

When such a function would create a best matching clone,
and not alter the source in one go. I'll vote for this. :P

Regards,
CVH
Last edited by CVH on Wed Jun 24, 2020 8:07 am, edited 3 times in total.
QCADpro 3.24.3.0 / win7pro 32 bit / 4GB / 1e generation i7 2.6Ghz / HDD GeForce GT 520

John Hyslop
Premier Member
Posts: 202
Joined: Mon Sep 30, 2019 6:21 am
Location: Melbourne - Australia

Re: Removal of overlapping lines or stacked lines of different lengths

Post by John Hyslop » Sat Dec 14, 2019 9:44 am

Hi CVH

Thanks for your support on this one :-)
Laser machines don't like stacked lines it's tends to cut over the profile 2 or 3 or howmany times when
the lines are stacked... my clients software cannot detect this so I guess I can be happy I get work:-)
Agree with you 100% this would be a very hard add-on to make... loads of calculations and yes you are
correct how would it know what ones to keep and discard...

Oh bye the way love the new Property Painter Tool... Great work :-)

Cheers
John
IF IT IS TO BE IT IS UP TO ME [ Ten most powerful 2 letter words ]

CVH
Premier Member
Posts: 775
Joined: Wed Sep 27, 2017 4:17 pm
Location: Belgium; Antwerp

Re: Removal of overlapping lines or stacked lines of different lengths

Post by CVH » Sat Dec 14, 2019 9:58 am

Funny,
Flexpainter is mine.

For Property painter all the credit is Andrew's.
Cheers
QCADpro 3.24.3.0 / win7pro 32 bit / 4GB / 1e generation i7 2.6Ghz / HDD GeForce GT 520

John Hyslop
Premier Member
Posts: 202
Joined: Mon Sep 30, 2019 6:21 am
Location: Melbourne - Australia

Re: Removal of overlapping lines or stacked lines of different lengths

Post by John Hyslop » Sat Dec 14, 2019 10:04 am

Oops ...nice work Andrew...
I'll check yours out tomorrow CVH 👌
Cheers
John
PS couldn't wait to look CVH had a little look and
WOW..so many things you can do..I will need to have
a real look at all the options..very nice interface nice work as expected 👌
IF IT IS TO BE IT IS UP TO ME [ Ten most powerful 2 letter words ]

Post Reply

Return to “Chat”