www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: Jonas on March 16, 2008, 08:35:49 pm

Title: Get vertices of a polygon
Post by: Jonas on March 16, 2008, 08:35:49 pm
Hi

Is it possible to find out which vertices belong to a polygon? So I can then use a vertex controller to manipulate those..

thanks


Title: Re: Get vertices of a polygon
Post by: JavaMan on March 16, 2008, 08:57:35 pm
I know you can use getTransformedVertex with an object's polygon manager. Then you could use a vertex controller to look through the mesh until you found the vertex that matches the one from getTransformedVertex. Once you find it, just change its values. I do this constantly.

I think this is what you want. 
Title: Re: Get vertices of a polygon
Post by: Jonas on March 17, 2008, 08:04:31 pm
Hi

Aye this works. Thanks