See the Java3D tutorial "Easy Content". ObjLoad.java uses the
StreamTokenizer
to fill arrayList objects. It also shows how to manipulate data in these
arrays.
> ----------
> From: Bruno Sousa Caiado[SMTP:[EMAIL PROTECTED]]
> Reply To: Discussion list for Java 3D API
> Sent: Wednesday, March 22, 2000 7:22 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JAVA3D] Reading values of type double from a file
>
> Hello.
> I am currently doing something very similar to you (i also have to read
> vertices from files) and i am using the java.io.StreamTokenizer class to
> read from files.
> I hope this helps.
>
>
> ----- Original Message -----
> From: Sachin Myneni <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, March 22, 2000 1:31 PM
> Subject: [JAVA3D] Reading values of type double from a file
>
>
> > Hi Everyone,
> > I have recently joined this mailing list (and infact recently
> > started using JAVA). I am developing a software which involves a HUGE
> number
> > of vertices. These vertices are divided into groups. That is, each set
> > represents a plane. Each of these planes have to be transformed
> (rotation
> > and translation).
> > * I have to read this vertices from a file, and I am not able to
> > figure out which java.io classes and methods, should I use to read these
> > "double" values from a file into an array (arrayList maybe???).
> > * What is the best way to store these points? The total number of
> > points do not change (till I am ready to write them into a file after
> some
> > calculation) and I frequently need to pull out these points
> sequentially.
> >
> > Any suggestion would be a huge help. And could someone point me
> > towards a book/resource which deals in examples with reading/storing
> > geometric data?
> >
> > Thanks
> > -Sachin
> >
> >
> ==========================================================================
> =
> > 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".
>
===========================================================================
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".