I'm trying to write a program to mimic a 3d architectural representation of a room in java (entities are: windows, walls, ceiling, floor; no furniture or anything inside). Then I will take some input parameters and optimize the spacing of the windows on the building.
I originally made the drawing in google sketchup, exported it as xml, parsed the xml into java classes, so now I java classes (wall, window, etc) containing coordinates for all the vertices of each entity. What I did before was hackish, but adding more functionality might be messy so I want to use existing libraries such as Point and Rectangle that have methods like setLocation, distance.
Are there any java libraries that support 3d geometries? The java.awt.Rectangle and java.awt.Point classes only support 2d shapes. The library should support methods like setLocation, move, etc because I will have to rearrange the windows on each wall after the optimization.
More specifically, I would like 3d rectangle and 3d point classes that support all the operations of java.awt.Rectangle and java.awt.Point (which is only 2d). I don't necessarily have to draw anything, just perform the optimization and get updated objects. Eventually I will write the optimization back to xml and make a new drawing in google sketchup.