odf / gavrog

Generation, analysis and visualization of reticular ornaments using Gavrog.
http://www.gavrog.org
Apache License 2.0
33 stars 5 forks source link

2D Structures in Web Gavrog Broken #15

Closed paulneves77 closed 3 years ago

paulneves77 commented 3 years ago

Hi again. I seem to be having a problem with web Gavrog (http://gavrog.org/webGavrog/) when trying to display some 2D structures. All it tells me when I try to open the .cgd file is "ERROR processing structure 1!!!."

An example input that produces this error is:

PERIODIC_GRAPH ID Kagome EDGES 2 0 0 1 0 0 1 0 0 0 1 0 0 1 0 0 2 1 0 0 1 2 0 0 0 1 2 1 0 0 END

odf commented 3 years ago

Because of the extra 0 at the end of each edge specification, webGavrog thinks this is a 3d net and tries to process it accordingly. With those removed, it works.

paulneves77 commented 3 years ago

Ok, thanks for the tip! I had this problem with several 2D graphs with 3D coordinates and this has resolved all of them.