Hello everybody,
I am trying to do a simple polygon with a hole using GeometryInfo.
If , as GeometryInfo says, the first contour is the bounding polygon and
subsequent contours are holes, I don't understand why the following
doesn't work.
Can anyone tell me?
int x=0;
GeometryInfo gi = new GeometryInfo(GeometryInfo.POLYGON_ARRAY);
Point3d[] coordinates = new Point3d[10];
coordinates[x++]= new Point3d(25,25,0);
coordinates[x++]= new Point3d(0,25,0);
coordinates[x++]= new Point3d(0,0,0);
coordinates[x++]= new Point3d(25,0,0);
coordinates[x++]= new Point3d(25,25,0);
coordinates[x++]= new Point3d(20,20,0);
coordinates[x++]= new Point3d(5,20,0);
coordinates[x++]= new Point3d(5,5,0);
coordinates[x++]= new Point3d(20,5,0);
coordinates[x++]= new Point3d(20,20,0);
gi.setCoordinates (coordinates);
int stripCounts[] = {5,5};
Thanks
Rosa