[ODE] Determining tri layout.

gl gl at ntlworld.com
Tue Feb 25 06:47:02 2003


Actually, it's easy if insist on a particular vertex ordering... but I'd
like to avoid that if possible...
--
gl

----- Original Message -----
From: "gl" <gl@ntlworld.com>
To: <ode@q12.org>
Sent: Tuesday, February 25, 2003 1:29 PM
Subject: [ODE] Determining tri layout.


>
> The app supplies the heighfield collider with triangles for a given sample
> patch, so it has no idea what layout these tris are, apart from that
they're
> guaranteed to be axis aligned.  I'm looking for the fastest & most elegant
> way to determine which of the 4 layouts one of those tris is (so I can do
a
> fast 2D point-in-tri test):
>
> |\
> |_\
>  _
> \  |
>   \|
>  _
> |  /
> |/
>   /|
> /_|
>
> Any ideas?
> --
> gl
>
> _______________________________________________
> ODE mailing list
> ODE@q12.org
> http://q12.org/mailman/listinfo/ode
>