Author Topic: Get vertices of a polygon  (Read 2162 times)

Offline Jonas

  • byte
  • *
  • Posts: 41
    • View Profile
Get vertices of a polygon
« 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


Simple things should be simple, complex things should be possible - Alan Kay

Offline JavaMan

  • long
  • ***
  • Posts: 231
    • View Profile
Re: Get vertices of a polygon
« Reply #1 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. 
« Last Edit: March 16, 2008, 09:05:09 pm by JavaMan »

Offline Jonas

  • byte
  • *
  • Posts: 41
    • View Profile
Re: Get vertices of a polygon
« Reply #2 on: March 17, 2008, 08:04:31 pm »
Hi

Aye this works. Thanks
Simple things should be simple, complex things should be possible - Alan Kay