Author Topic: Pline: Is ortho? (segments)  (Read 5811 times)

0 Members and 1 Guest are viewing this topic.

Lee Mac

  • Seagull
  • Posts: 12915
  • London, England
Re: Pline: Is ortho? (segments)
« Reply #15 on: December 10, 2014, 08:52:04 AM »
Excuse my ignorance, and without me try to understand something above, can  you indicate what functions are accounting for bulge?

My posted functions are accounting for bulge (i.e. returning nil if the polyline contains arc segments), yours & VovKa's are not.
About adiacent vertex (see image and dwg posted) what do you think? we consider orthogonal?

I would say so, yes.

Marc'Antonio Alessi

  • Swamp Rat
  • Posts: 1453
  • Marco
Re: Pline: Is ortho? (segments)
« Reply #16 on: December 10, 2014, 10:46:25 AM »
After a quick test ortho-p5 seems the best. Thanks.  :)

Lee Mac

  • Seagull
  • Posts: 12915
  • London, England
Re: Pline: Is ortho? (segments)
« Reply #17 on: December 10, 2014, 12:34:25 PM »
You're welcome!  8-)

owenwengerd

  • Bull Frog
  • Posts: 451
Re: Pline: Is ortho? (segments)
« Reply #18 on: December 10, 2014, 02:17:07 PM »
After a quick test ortho-p5 seems the best. Thanks.  :)

Note that, as Lee noted, these make assumptions about the parameterization of a polyline that may not always be true. See e.g. QuirkyPolyline: exposing foolish programmers.

Marc'Antonio Alessi

  • Swamp Rat
  • Posts: 1453
  • Marco
Re: Pline: Is ortho? (segments)
« Reply #19 on: December 11, 2014, 03:18:16 AM »
Note that, as Lee noted, these make assumptions about the parameterization of a polyline that may not always be true.
I re-read all the messages but I do not see where Lee said that.
Regarding:
Quote
See e.g. QuirkyPolyline: exposing foolish programmers.
I think I understand that there may be no exact values but only in complex curves? I misunderstood?

Lee Mac

  • Seagull
  • Posts: 12915
  • London, England
Re: Pline: Is ortho? (segments)
« Reply #20 on: December 11, 2014, 07:40:57 AM »
Note that, as Lee noted, these make assumptions about the parameterization of a polyline that may not always be true.
I re-read all the messages but I do not see where Lee said that.

Another option, with reliance on integer parameters at vertices...

;)