With the advent of the new improved VTK Python interface we will need examples.
These will fall into two groups:
- New Examples.
- Rewriting existing examples.
These examples should be separate from the existing Python examples in the VTK Examples. In the case of rewritten examples this will let the user easily toggle between the updated and original example.
So I have created a branch which does this and hopefully makes it simple for users to upgrade existing examples.
To do this, I had to:
- Create a new folder called example: src/Python1
- Create a new folder: src/Testing/Baseline/Python1
- Add src/Python1.md to the top level
- Edit src/Admin/ScrapeRepo.py to add in the new Python folder.
- Edit src/Admin/VTKClassesUsedInExamples.py to add in the new Python folder.
- Edit src/SyncSiteWithRepo.sh to include src/Testing/Baseline/Python1.
Please have a look at web-test/site/Python1
In this page there are instructions on how to upgrade existing examples.
If you click on the Hello World example you will see, in the Other Languages section, a link to Python. Clicking on it will take you to the original example. Clicking on the Python1 link there will take you back to the re-worked example.
If you don’t like Python1 as the folder name, please select a better name, but keep it short.
If people think this will a good approach, I’ll do a MR. I know that the work here is not finished but by having a place to put the examples, people may like to rework existing examples so we can see what the code looks like!