cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
runxel
Moderator

"ResizeContour" does not work as expected

If you use the "ResizeContour" operation of the PolygonOperations-Addon I would expect that the resulting polygon is offsetted in all directions.
But clearly something terrible has happened here:


You see, the "start" point of the closed (!) polygon was not taken into account in the right manner. Now I have this corner chamfered away, gone for good.
The expected behaviour should be of course a new rectangle....
Lucas Becker | AC 29 on Mac (Sequoia) | Graphisoft Insider Panelist | Akroter.io – high-end GDL objects | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text

My List of AC shortcomings & bugs | I Will Piledrive You If You Mention AI Again |

POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»
1 Solution

Accepted Solutions
Peter Baksa
Graphisoft
Graphisoft
Hi runxel,

the problem is probably that when working with dicts, PolyOperations "ResizeContour" expects a polygon whose last point is not the same as the first.

Dict polygons always have to be closed, polylines can be open or closed. A closed polyline/polygon means the last point is not the same as the first (think of it as auto-closed). An open polyline has one more vertices than edges.
Péter Baksa
Software Engineer, Library
Graphisoft SE, Budapest

Go to post

5 Replies 5
Lingwisyer
Guru
Reminds me of when you try to offset a polygon that is not closed in AutoCAD... Is there a way to ensure that the input polygon is closed?

AC22-29 AUS 3200Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win11 | R5 2600 | 16GB | GTX1660
runxel
Moderator
No solution, GS?
Lucas Becker | AC 29 on Mac (Sequoia) | Graphisoft Insider Panelist | Akroter.io – high-end GDL objects | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text

My List of AC shortcomings & bugs | I Will Piledrive You If You Mention AI Again |

POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»
Pertti Paasky
Expert
Hi, can You share Your object placed in a .pla file? No other way I can comment this problem. Polygon operations usually work fine. Maybe there is something wrong with the initial data. I have found some bugs in the add-on and example objects.
- AC-24 FIN - WIN 10 - HP Zbook -
“A winner is just a loser who tried one more time.”
George M. Moore, Jr.
Peter Baksa
Graphisoft
Graphisoft
Hi runxel,

the problem is probably that when working with dicts, PolyOperations "ResizeContour" expects a polygon whose last point is not the same as the first.

Dict polygons always have to be closed, polylines can be open or closed. A closed polyline/polygon means the last point is not the same as the first (think of it as auto-closed). An open polyline has one more vertices than edges.
Péter Baksa
Software Engineer, Library
Graphisoft SE, Budapest
runxel
Moderator
Peter wrote:
the problem is probably that when working with dicts, PolyOperations "ResizeContour" expects a polygon whose last point is not the same as the first.

Dict polygons always have to be closed, polylines can be open or closed. A closed polyline/polygon means the last point is not the same as the first (think of it as auto-closed). An open polyline has one more vertices than edges.
Thank you Péter! That is exactly the right hint.
What I did was to insert a final new point which is coincident with the first point. When doing that the result will look like in my picture above.
Would be great if this info of auto-closing polygons could be a bit more prominent in the manual.
It was also quite unclear for me why there is a distinction made between polygons and polylines in the first place.
Lucas Becker | AC 29 on Mac (Sequoia) | Graphisoft Insider Panelist | Akroter.io – high-end GDL objects | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text

My List of AC shortcomings & bugs | I Will Piledrive You If You Mention AI Again |

POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!