I just uploaded a new version of FCB (FCB.exe) to
http://knotcyphers.pbwiki.com/The-FCB-Cypher. It was fun working on the KnotTyer3D parser, so I kept on adding more bells and whistles to the program!
I uploaded the source code as well (
https://knotcyphers.pbwiki.com/browse/#view=ViewAllFiles). Derek, is that the proper place to upload these files? I have started to refactor (re-work) the KnotTyer3D logic in order to build some re-usable routines (e.g. a routine to find all of the WEnds in a diagram, and a routine to trace through an entire cord, etc.), but it is still a work-in-progress. See GridProcessor.pas.
Derek, do you have any modifications which need to be merged in?
Here are the updates in v4.3:
1. Under the File menu, there is a new option called "View With KnotTyer3D." This will pop up a window which explains what KnotTyer3D is, and it provides a link to the KnotTyer3D website. If KnotTyer3D is installed on your machine then enter the path and filename for KnotTyer3D.exe in this new window, as well as the filename to be used for exporting the current diagram (these filenames will be saved to a new INI file in the FCB.exe folder). Clicking the "Run KnotTyer3D" button will display your diagram in KnotTyer3D. It will display up to 3 cords.
The .KT3 file which the new parser creates is simply a text file, so Derek suggested popping up the .KT3 file to allow it to be edited (for tweaking the knot in KnotTyer3D). However, KnotTyer3D has an editor which allows you to modify the file and view the results. Let me know if you find some ways to improve the way that a knot looks in KnotTyer3D!
2. The main FCB window is now automatically maximized when it loads (because most of the window was off of my screen when it loaded). I'm hoping that Derek or I can get it to scale the grid size based on the user's screen resolution, which will also enable us to provide zoom in/zoom out capability.
3. Added an Undo feature.
4. I thought it would be nice if the active palette tile is highlighted, but I just couldn't get it to put a satisfactory border around the active tile. Therefore, I simply made the active tile bigger so that it stands out.
5. If you CTRL+click a cell on the diagram, the tile in that cell will be rotated.
6. For operations which will destroy your current diagram (e.g. File/New, File/Open, File/Exit), you'll now be prompted to save your changes.
7. The File/Save menu item is now disabled until a filename has been selected.
I tried to make it "bulletproof," so do your best to break it and let us know what bugs you find!
What would be a good name for this tool? Some ideas:
KnotDiagrammer
KnotMaker
KnotCharter
KnotIllustrator
KnotDesigner
KnotCanvas
KnotDraw
KnotPaint
KnotArtist
KnotSketch
Dave