Path.polygonData.move() returns empty PolygonData
- Dominant language
- Python
- Stars
- 7
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
### 🔍 Before submitting the issue
- [x] I have searched among the existing issues
- [x] I am using a Python virtual environment
### 🐞 Description of the bug
PolygonData.move pethods works fine with PolygonData from poylgon but returns and empty one (no points) when we take Path.center_line.
Maybe the issue comes from the fact PolygonData is not closed.
### 📝 Steps to reproduce
``` python
from pyedb import Edb
edb_file = r"D:\Temp\real_board6.aedb"
edb = Edb(edbpath=edb_file, version="2026.1", grpc=True)
path = edb.layout.paths[0]
path.move(vector=[1.0e-3, 1.0e-3])
```
### 💻 Which operating system are you using?
Windows
### 📀 Which ANSYS version are you using?
NA
### 🐍 Which Python version are you using?
3.12
### 📦 Installed packages
```shell
NA
```
Contributor guide
Research direction
Reproduce the issue with the provided Windows Python example, then inspect Path.center_line and the PolygonData.move interaction, especially whether an open PolygonData is handled. Done means moving the path no longer produces PolygonData with no points, with a regression check for the reported case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100