Multipolygon in Java 3D

Problem: Here is an example string from a postgis geometry field. Write me a static function/s that returns a float array (or you can create an object)to store the values. Keep high speed and low memory usage as your top priorities. Make sure array or object keeps the polygon-ring-coordinate hierarchy.

MULTIPOLIGON(((0 0 0,4 0 0,4 4 0,0 4 0,0 0 0), (1 1 0,2 1 0,2 2 0,1 2 0,

1 1 0)), ((-1 -1 0,-1 -2 0,-2 -2 0,-2 -1 0,-1 -1 0)))

A multipolygon can have multiple polygons, and a plygon can have multiple rings. Rings are a comma delimited list of space delimited coordinates.

Thanking u,

ripon

[631 byte] By [riponc007a] at [2007-9-29 0:34:25]
# 1
Hope noone helps this guy to solve all his home assignment problems! He has posted them all here and lets other people sweat. I just tried to help him solve his first posted message, but this is just too much.Gil
gilroittoa at 2007-7-13 3:02:06 > top of Java-index,Other Topics,Algorithms...