Author Topic: Operation with self-intersecting polylines  (Read 1783 times)

0 Members and 1 Guest are viewing this topic.

sauron-83

  • Mosquito
  • Posts: 8
Operation with self-intersecting polylines
« on: February 09, 2016, 03:31:38 PM »
Hi, I've just wonder if there is any method to deal with situation as on the picture below.


Does anyone could help with it.
I found similar topics on this or other forums but not exact what I want to.

I need extract all closed areas from self-intersected polylines.
But this is not only one problem.
I have a huge set of closed polylines and firstly need do determine which one is self-intersecting
then split it into separate closed polilines.
To shed light on I also attached a drawing with data I have.

Thanks in advance for any help.

sauron


ronjonp

  • Needs a day job
  • Posts: 7529
Re: Operation with self-intersecting polylines
« Reply #1 on: February 09, 2016, 04:01:40 PM »
Not a complete answer, but here is your drawing with the intersecting items colored red.

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

sauron-83

  • Mosquito
  • Posts: 8
Re: Operation with self-intersecting polylines
« Reply #2 on: February 09, 2016, 04:19:42 PM »
Not a complete answer, but here is your drawing with the intersecting items colored red.

Really great thanks it helps. It's really good result.
I have tested a few lisp functions founded on forums that should verify this
and never get all these (proper result) as on drawing from you.

Could I ask you to share function or method you got this? 
That's is only one of the drawings I have now but expect that will get much more.

sauron

sauron-83

  • Mosquito
  • Posts: 8
Re: Operation with self-intersecting polylines
« Reply #3 on: February 09, 2016, 04:27:02 PM »
Aha, OK
I think know what you did.
Just create regions from all and if won't created it - means it is wrong.
Good idea :).


sauron

Lee Mac

  • Seagull
  • Posts: 12915
  • London, England
Re: Operation with self-intersecting polylines
« Reply #4 on: February 09, 2016, 05:25:19 PM »
You could use something like this.

sauron-83

  • Mosquito
  • Posts: 8
Re: Operation with self-intersecting polylines
« Reply #5 on: February 09, 2016, 06:47:21 PM »
You could use something like this.

oh that is I was looking for.
As always just perfect!

Lee,
I had a lot of problems with CAD that already solved mostly by you and
I even didn't have to create a new topics, only found right one.
This time I missed it.

Great thanks for both of you for quick and right answers.
My problem is solved - topic could be closed.

Regards,
Sauron





Lee Mac

  • Seagull
  • Posts: 12915
  • London, England
Re: Operation with self-intersecting polylines
« Reply #6 on: February 10, 2016, 04:04:44 AM »
You're most welcome - I'm glad I could be of some assistance  :-)

mailmaverick

  • Bull Frog
  • Posts: 493
Re: Operation with self-intersecting polylines
« Reply #7 on: February 23, 2016, 11:58:23 PM »
My question is for Lee : How are you able to Locate Old Posts so easily ? Kindly let us know how you keep track of old posts so that we may also learn to find them easily.