Here is a very basic pseudocode:
open read stream to your source file
open write stream to the file that you want to create
initialize boolean values writing_vertices and writing_facets to false
repeat
read line of text from input stream
if line equals BEGIN VERTICES then
writing_vertices became true
else if line equals END VERTICES then
writing_vertices became false
else if line equals BEGIN FACETS then
writing_facets became true
else if line equals END FACETS then
writing_facets became false
else if writing_vertices then
parse input line
write vertex line to the output stream
else if writing_facets then
parse input line
increment vertex references with 1
write facet line to the output stream
while not end of file
close write stream
close input stream
If you're not able to translate that into an usefull java program, then I
strongly suggest to leave java3d out and start learning first java. Only
after you're able to understand the way java works out, then you can return
to java3d. Otherwise, if you're only interested in 3d graphics, you don't
need java3d, just a commercial 3d graphics package that you can buy in any
software shop.
Cheers,
Florin
-----Urspr�ngliche Nachricht-----
Von: ������� [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 6. Juni 2003 10:33
An: [EMAIL PROTECTED]
Betreff: Re: [JAVA3D] AW: [JAVA3D] AW: [JAVA3D] niewbie in Java3d, HELP
I know java, but the very basic. Now i want to deal with Java3d. Could you
describe any method in transforming or give any tutorial?
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
==========================================================================To
unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".