Author Topic: Calculate the internal angles of a polygon  (Read 1476 times)

0 Members and 1 Guest are viewing this topic.

FELIX

  • Bull Frog
  • Posts: 245
Calculate the internal angles of a polygon
« on: March 03, 2016, 02:29:57 PM »
Calculate the internal angles of a polygon (polyline) irregular closed every three points.

Note: Not always the internal angle is less than 180 degrees

ok.
OK.

Lee Mac

  • Seagull
  • Posts: 12928
  • London, England

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: Calculate the internal angles of a polygon
« Reply #2 on: March 03, 2016, 02:55:19 PM »
Technically a polyline cannot be closed every three points. So probably you mean a shape where e.g. vertex 0, 3, 6 etc. are in the same location. If that is so, where are the internal angles? Can the polyline be self-crossing?

Lee Mac

  • Seagull
  • Posts: 12928
  • London, England
Re: Calculate the internal angles of a polygon
« Reply #3 on: March 03, 2016, 02:57:46 PM »
Technically a polyline cannot be closed every three points. So probably you mean a shape where e.g. vertex 0, 3, 6 etc. are in the same location. If that is so, where are the internal angles? Can the polyline be self-crossing?

I understood the request as: 'calculate the interior angle between every three points for a closed polygon', but I could be wrong  :|

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: Calculate the internal angles of a polygon
« Reply #4 on: March 03, 2016, 03:04:45 PM »
Your interpretation may well be correct Lee. Reading the OP my mind immediately produced the image of a flower shape with triangular 'petals'.

FELIX

  • Bull Frog
  • Posts: 245
Re: Calculate the internal angles of a polygon
« Reply #5 on: March 03, 2016, 10:57:02 PM »
Three points would function arguments.
Ok Lee MAC already modified the function to pass a list of points as an argument.
Thank you so much to everyone.
OK.
OK.