Hello Rosa,
I think what you have to do is also to set the contourCount, within your
example:
int[] stripCounts = {5,5};
int[] contourCounts = {2};
So your geometry consists of one part with two countours. If you e.g. the
geometry should consist of two polygons, the first one having 1 hole, the
second one 2 holes, it must be specified like:
int[] stripCounts = {5, // first polygon bounding
5, // first polygon hole
6, // second polygon bounding
5, // second polygon first hole
5}; // second polygon second hole
int[] contourCounts = {2, // number of contours for first polygon
3}; // number of contours for
second polygon
I hope this helps.
Thomas Langhagel
Rosa M� Mac�as Verde <[EMAIL PROTECTED]> am 06/16/99 03:16:21 PM
Bitte antworten an Rosa M� Mac�as Verde <[EMAIL PROTECTED]>
An: [EMAIL PROTECTED]
Kopie: (Blindkopie: Thomas Langhagel)
Thema: (no subject)
Content-type: text/plain; charset
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
GeometryInfo gi Point3d[] coordinates coordinates[x++] coordinates[x++]
coordinates[x++] coordinates[x++] coordinates[x++] coordinates[x++] coordinates[x++]
coordinates[x++] coordinates[x++] coordinates[x++] gi.setCoordinates (coordinates);
int stripCounts[] Thanks
Rosa