Hi Rosa,
You have to set the contour count, to the amount of strips each polygon
uses:
// a triangle
pts[0] = points[0];
pts[1] = points[1];
pts[2] = points[2];
// the rectangular hole in the triangle
pts[3] = doorPoints[0];
pts[4] = doorPoints[1];
pts[5] = doorPoints[2];
pts[6] = doorPoints[3];
int[] stripCount = {3, 4};
int[] contourCount = {2}; // this means, the first polygon uses the first
two strips
GeometryInfo gi = new GeometryInfo(GeometryInfo.POLYGON_ARRAY);
gi.setCoordinates(pts);
gi.setStripCounts(stripCount);
gi.setContourCounts(contourCount);
Hope that helps
Chris Wewerka
[EMAIL PROTECTED]
--
ICQ : 32649217
<< "Very funny Scotty, now beam down my clothes!" >>