You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I create a Petri Net and make arcs perfectly aligned with the grid. I save the file, reopen it and the intermediate points of the arcs have slightly shifted. Every time I save the file again and reopen it, the arcs are shifted more and more. An example is given below:
Original net
After saving and opening the first time
After saving and opening the second time
After saving and opening the third time
After saving and opening the fourth time
After saving and opening the nineth time
The problem probably lies in the opening of the net, because when I save the original net, the coordinates in the XML file look fine. When I open it again, the lines seem slightly shifted.
What I also noticed is that in the XML file, the coordinates of arcs are given as integers, while the coordinates of places and transitions are given as floats. Maybe this has something to do with the shifting?
The text was updated successfully, but these errors were encountered:
On further inspection of the code you might notice that the models (since pipe claims to be mvc) aren't really used and that the entire analysis of petri nets is based on the views. Furthermore in the views there is some bizarre logic dotted around (such as incrementing x and y by 5 in some places) that is likely causing these and a range of other potential bugs.
I'm currently working on a revamp of the underlying system so that it actually uses models under the hood. As you can imagine this is a large feat but I hope to have a realease out for Christmas time that will address this issue amongst several others!
I hope in the mean time that this issue does not trouble you too much.
Sent from Samsung Mobile
-------- Original message --------
From: dylankiss notifications@github.com
Date:
To: sarahtattersall/PIPE PIPE@noreply.github.com
Subject: [PIPE] Arcs change coordinates on loading a previously saved net (#15)
I create a Petri Net and make arcs perfectly aligned with the grid. I save the file, reopen it and the intermediate points of the arcs have slightly shifted. Every time I save the file again and reopen it, the arcs are shifted more and more. An example is given below:
The problem probably lies in the opening of the net, because when I save the original net, the coordinates in the XML file look fine. When I open it again, the lines seem slightly shifted.
What I also noticed is that in the XML file, the coordinates of arcs are given as integers, while the coordinates of places and transitions are given as floats. Maybe this has something to do with the shifting?
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/15.
I create a Petri Net and make arcs perfectly aligned with the grid. I save the file, reopen it and the intermediate points of the arcs have slightly shifted. Every time I save the file again and reopen it, the arcs are shifted more and more. An example is given below:
Original net
After saving and opening the first time
After saving and opening the second time
After saving and opening the third time
After saving and opening the fourth time
After saving and opening the nineth time
The problem probably lies in the opening of the net, because when I save the original net, the coordinates in the XML file look fine. When I open it again, the lines seem slightly shifted.
What I also noticed is that in the XML file, the coordinates of arcs are given as integers, while the coordinates of places and transitions are given as floats. Maybe this has something to do with the shifting?
The text was updated successfully, but these errors were encountered: