FX_DisplacePoint


Point displacement structure.

This structure gets passed to your FX_DISPLACESCAN() callback function for each point in the mesh being displaced. The structure contains information about the point such as the ID of the object it belongs to as well as various pieces of geometric information such as the point's position and normal. When you have claculated the position that you would like this point to occupy you will set the FX_DisplacePoint_St::new_pos member to that value.


Data Fields

const FXint objID
 ID of the object being displaced.

const FXint ID
 ID of the point being displaced.

const FXvecd file_pos
 Un-displaced position of the point in object space.

const FXvecd cur_pos
 Displaced position of the point in worldspace.

const FXvecd normal
 Surface normal at the point.

const FXdouble weight
 Weight of the point as calculated by the weight tool passed to fxDisplaceScan().

const FXint flags
 FX_DISPFLAG_WEIGHT() bit is set if this point contains weight information in the weight element.

FXvecd new_pos
 Set this vector to the worldspace position of the point as a result of your displacement.


© 2003 pmG WorldWide, LLC.


www.projectmessiah.com

groups.yahoo.com/pmGmessiah

Last Updated on Thu Jul 10 04:49:37 2003