My SymSplitter implementation is now complete
I translated Philo's C++ code into Java and did some modifications.
LPE's SymSplitter supports all features of the original program*, but works a little bit different.
Instead of deleting the file contents, it just reorders them, e.g.:
Take this as an input file:
And you will get:
* in fact, the inlining is not implemented since you have other powerful features to do the inlining.
https://lh4.googleusercontent.com/-zr_XR...litter.png
I translated Philo's C++ code into Java and did some modifications.
LPE's SymSplitter supports all features of the original program*, but works a little bit different.
Instead of deleting the file contents, it just reorders them, e.g.:
Take this as an input file:
Code:
4 16 -8 -5.25 8 -36.25 -5.25 36.25 56.6769 -5.25 36.25 28 -5.25 8
4 16 -36.25 -5.25 -36.25 -36.25 -5.25 36.25 -8 -5.25 8 -8 -5.25 -8
0 BFC INVERTNEXT
1 16 0 -5.25 0 -1 0 0 0 -1.3125 0 0 0 1 stud4a.dat
4 16 28 -5.25 -8 56.6769 -5.25 -36.25 -36.25 -5.25 -36.25 -8 -5.25 -8
1 16 0 -5.25 20 -1 0 0 0 -1.3125 0 0 0 1 stud4.dat
1 16 0 -5.25 -20 -1 0 0 0 -1.3125 0 0 0 1 stud4.dat
And you will get:
Code:
0 !LPE TODO SymSplitter: Section in front of the plane.
4 9 -8 -5.25 8 -36.25 -5.25 36.25 56.6769 -5.25 36.25 28 -5.25 8
1 1 0 -5.25 20 -1 0 0 0 -1.3125 0 0 0 1 stud4.dat
0 !LPE TODO SymSplitter: Section between the plane.
4 14 -36.25 -5.25 -36.25 -36.25 -5.25 36.25 -8 -5.25 8 -8 -5.25 -8
0 BFC INVERTNEXT
1 14 0 -5.25 0 -1 0 0 0 -1.3125 0 0 0 1 stud4a.dat
0 !LPE TODO SymSplitter: Section behind the plane.
4 16 28 -5.25 -8 56.6769 -5.25 -36.25 -36.25 -5.25 -36.25 -8 -5.25 -8
1 16 0 -5.25 -20 -1 0 0 0 -1.3125 0 0 0 1 stud4.dat
* in fact, the inlining is not implemented since you have other powerful features to do the inlining.
https://lh4.googleusercontent.com/-zr_XR...litter.png