david li

Greenhorn
+ Follow
since Jun 26, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by david li

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.
15 years ago
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.

Let me know if my explanation is unclear.
15 years ago