Author Topic: Detaching area from polyline by free cutting line  (Read 1532 times)

0 Members and 1 Guest are viewing this topic.

Nic

  • Mosquito
  • Posts: 2
Detaching area from polyline by free cutting line
« on: December 29, 2020, 04:27:02 PM »
Dear all,

Have you ever faced the problem of detaching a plot from a closed polyline? I have posted here an algorithm that I hope I can improve with your help. Improvements must relate to speed and accuracy. It must also be possible to use both convex polygons and concave polygons. Any help will be welcome.

Thank you.

BIGAL

  • Swamp Rat
  • Posts: 1409
  • 40 + years of using Autocad
Re: Detaching area from polyline by free cutting line
« Reply #1 on: December 29, 2020, 06:04:24 PM »
This is built into Civil software like CIV3d and its like 40 years old in other 3rd party Civil software.

Line at brg
Line parallel
Line at dist ie along a straight or an arc.

To mention a few I think there were about 6 options.

There was a repeat function for say Parallel lines.

Nice idea though maybe add a DCL image for choice of lot type.
A man who never made a mistake never made anything

didier

  • Newt
  • Posts: 48
  • expatrié
Re: Detaching area from polyline by free cutting line
« Reply #2 on: December 30, 2020, 10:08:55 AM »
Bonjour depuis la France

it is surprising that in another country at another time some people ask themselves the same questions
I managed to make it a little faster but I’m still shy to deposit my programs at TheSwamp in the midst of these people who know so much and I admire so much
today... I propose my solution and I will look at the comments
I use boundary and there is still a problem when the chosen point is clicked too far from the final side
tell me your opinions


Amicalement
« Last Edit: October 23, 2022, 07:38:05 AM by didier »
eternal beginner ...
my english is not fluent ...

Nic

  • Mosquito
  • Posts: 2
Re: Detaching area from polyline by free cutting line
« Reply #3 on: December 30, 2020, 02:07:11 PM »
Hello Didier,
I am glad that there are other people who are interested in detaching a polyline using a forced surface and an arbitrary cutting line. I downloaded your code and found that there are problems with polylines with more complex geometry. That's why I think an analytical approach is more appropriate without using the BOUNDARY command which can produce unwanted effects on complex polylines.
Best regards.

didier

  • Newt
  • Posts: 48
  • expatrié
Re: Detaching area from polyline by free cutting line
« Reply #4 on: December 31, 2020, 04:43:57 AM »
Bonjour Nic

thank you for testing my proposal

I fully understand the remarks
they are right about special cases of complex geometry.
I wanted to make it "simple" for the speed of execution in all simple cases (95 percent of the cases)
you recognize that it's pretty fast?
I haven't said my last word and I'm going to work on it again
I'm going to look at the anlytic side to try to settle all the cases
but I work slowly because I'm alone in my corner and self-taught.
in any case I'll keep you informed now that I've started sharing my code

Amicalement
eternal beginner ...
my english is not fluent ...