Setting Centroid of Points and Proper Scale?
I recently started using Java3d with integration of geotools.org. I'm able to get results from geotools data structures mapped correctly to Java3d data structures and display but....
For the life of me I'm unable to set a Centroid and properly scale large points.
My screen is always a Centroid of 0,0.
What I have is points that are like
So the points are never displayed in my Frame of 400,300
I would really appreciate a code snipped to do the following:
1) set centroid not at 0,0 but at lets say: (10000.0,100200, 96)?
2) scale properly large points like the 3 above to a frame of lets say 400,300?
I played around with the following:
But I honestly think I'm seriously missing something.
Any input would be greatly appreciated.