DisplaceModifier.GetMinMaxMapPixel

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.

Prototype

int GetMinMaxMapPixel( Vec Min, Vec Max )

Parameters

Function parameters are as follows:

Examples

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;

Working Sample Code

For sample code: