Hi Tero,
I am not sure what's the other data set that you are talking about, if it is
just the data from Dave Smith:
Point3d[] coordinates = {
//outer bounds of the polygon
new Point3d(2., 0.0, 0.0),
new Point3d(2., 0.0, 1.3),
new Point3d(0.0, 0.0, 1.3),
new Point3d(0.0, 0.0, 0.0),
//the hole
new Point3d(1.93, 0.0, 0.07),
new Point3d(0.07, 0.0, 0.07),
new Point3d(0.07, 0.0, 1.13),
new Point3d(1.93, 0.0, 1.13)
};
then, it's the same problem as your data. I tried this too.
Actually, the FIST code will check the polygon orientation of each polygon
boundary and will make the outer boundary as CCW, the hole boundary as CW.
So I suppose GeometryInfo should work for any sense of polygon, no matter
CW or CCW, but actually not, it only works when both are in CCW sense.
---white
On Mon, 24 Feb 2003 11:54:07 +0200, Tero Karhunen <[EMAIL PROTECTED]> wrote:
>You said 'the' testcase, did you try the testcases under both links? They
>are different, and for the first one changing the sense works ( i realized
>it was a bad testcase later) but for the second one it doesn't.
>
>So basically we want to define polygons with holes in 3d, but what we don't
>know is whether the holes should be specified in the same sense (cw/ccw) as
>the outer boundary. So far we're not getting good results irrespective of
>whether the senses agree or disagree consistently. Also i gather that
>numerical jitter resulting in the boundaries not quite being co-planar
>shouldn't make any difference. I'm puzzled.
>
>-tero
>
>
>-----Original Message-----
>From: Discussion list for Java 3D API
>[mailto:[EMAIL PROTECTED] Behalf Of White Morph
>Sent: 17. helmikuuta 2003 21:42
>To: [EMAIL PROTECTED]
>Subject: Re: [JAVA3D] Some questions about triangulation in Java3D
>
>
>Hi Pasi,
>
>I checked the post and tried the example. The problem of not correctly
>triangulated is just because of you listed the boundary vertices in
>clockwise order, if you change that order to counterclockwise, you'll get
>the correct result.
>
>----white
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".