This page contains reference documentation for the GetMinMaxMapPixel function. This function returns the location and heights of the minimum and maximum points in the displace map.
int GetMinMaxMapPixel( Vec Min, Vec Max )
Function parameters are as follows:
Examples are as follows:
DisplaceModifier DispModifier = new DisplaceModifier; // Allocate two Vec objects Vec minPix = new Vec; Vec maxPix = new Vec; // Copy the Minimum and Maximum Pixel x, y, and Z values into the Vec objects. dispModifier.GetMinMaxMapPixel( minPix, maxPix ); // Do something with minPix and maxPix // ... // clean up delete minPix; delete maxPix;
For sample code: