PDA

View Full Version : How to get vertex index



lechoo
06-09-2005, 03:59 AM
Hi,
I'm qiute new to LW SDK so my problem is propably quite simple. How can I get index of current vertex inside Evaluate method (displacement plugin). My guess is that I have to use point from LWDisplacementAccess, but I don't know where or how.

thanks for any help

MartinScott
06-29-2005, 10:05 AM
The LWDisplacementAccess structure contains the ID of the current vertex in 'point'. Use this value to access info about the point using the LWMeshInfo structure 'info' also within the LWDisplacementAccess structure.
You can obtain the required mesh ID used in the LWMeshInfo functions by using the LWObjectInfo or LWObjectFuncs globals.

Hope this helps.