Could somebody please help me?

     I've been working on a project. The aim of this project is to build a
3D model of an object using images of slices of the object so that all the
internal detail is captured. I've used an orange as the object. I've done
the image processing part so now I have coordinates saved in files. I'm
treating the different parts of the orange as different shapes. For example,
a seed is one shape, the outer peel another, etc.

    I read in these coordinates from the files and create Shape3D objects
with them. Trouble is, the way I have implemented the Java3d part takes
loads of memory and I get out of memory exceptions. Would someone please
have a look at my code and see how I can optimize it? Just to warn you, I
only started learning Java about 3 months ago & Java3D about 1 1/2 months
ago, so the code is probably really bad. Also, there's a method in there for
rotating the points from consecutive images incase the slices moved a bit
when the images were being taken. This method isn't working properly so you
can ignore it.

    This is my final year project and is due in on Friday, so I would be
really grateful for any help.
Thanks,
Paula.

ThreeDFrame.java

Reply via email to