How are splines stored as xml in the .jas file?
Hi all,
does anybody know, in what format the points and control points of a spline are stored in the .jas file?
As the spline editing tools are sparse and as we do not have access to these points from scripting (we have acces to the tesselated spline - I know), I had the idea to write some external program that modifies the spline in the xml file in order to make certain 3D-spline editing operations easier.
I have spotted, where this information is stored in the xml-file
(the code segment looks something like:
<array>
<dict>
<key>pathops</key>
<data>
AAAAAAAAAAA/gAAAAAAAAL5MzM0+TMzNPczM
zQAAAAAAAAAAAAAAAL5MzM2+mZmWPczMzQAA
AAIAAAAAP4AAAD+AAAC+TMzNvczMzT3MzM0/
TMzMPkzMzT3MzM0/TMzMvczMzT3MzM0AAAAC
AAAAAD+AAABAgAAAvkzMzT5MzM09zMzNv5mZ
mr3MzM09zMzNv5mZmj5MzM09zMzN
</data>
<key>pathopscount</key>
<integer>3</integer>
</dict>
</array>
)
and I think to have figured out, that a point with its two control points in a Bezier spline, is represented by 2 text lines of 36 characters each. However I failed to figure out, how the (probably double precision) numbers are converted into the alphabet "+, /, =, 0..9, A..Z, a..z" ...
Then, I was guessing some common method to be employed however, I was not able to find anything in the internet.
If anybody can give me a hint, I would appreciate it (certainly, Martin knows about, but he might be busy perfecting and extending Cheetah3D).
Herbert
Hi all,
does anybody know, in what format the points and control points of a spline are stored in the .jas file?
As the spline editing tools are sparse and as we do not have access to these points from scripting (we have acces to the tesselated spline - I know), I had the idea to write some external program that modifies the spline in the xml file in order to make certain 3D-spline editing operations easier.
I have spotted, where this information is stored in the xml-file
(the code segment looks something like:
<array>
<dict>
<key>pathops</key>
<data>
AAAAAAAAAAA/gAAAAAAAAL5MzM0+TMzNPczM
zQAAAAAAAAAAAAAAAL5MzM2+mZmWPczMzQAA
AAIAAAAAP4AAAD+AAAC+TMzNvczMzT3MzM0/
TMzMPkzMzT3MzM0/TMzMvczMzT3MzM0AAAAC
AAAAAD+AAABAgAAAvkzMzT5MzM09zMzNv5mZ
mr3MzM09zMzNv5mZmj5MzM09zMzN
</data>
<key>pathopscount</key>
<integer>3</integer>
</dict>
</array>
)
and I think to have figured out, that a point with its two control points in a Bezier spline, is represented by 2 text lines of 36 characters each. However I failed to figure out, how the (probably double precision) numbers are converted into the alphabet "+, /, =, 0..9, A..Z, a..z" ...
Then, I was guessing some common method to be employed however, I was not able to find anything in the internet.
If anybody can give me a hint, I would appreciate it (certainly, Martin knows about, but he might be busy perfecting and extending Cheetah3D).
Herbert