void ufoProcessCalcNeedRectangles( ufoProcess process_instance, ufoRectangle* output_rectangle, ufoRectangle* needed_input_rectangles);
Refer to the following table for command descriptions:
|
Command |
Description |
output_rectangle |
needed rectangle region |
needed_input_rectangles |
array of needed input rectangle regions to be returned |
This function is optional. If supplied, it is called before a process is rendered at a frame. Given the output region to be rendered, the function should calculate the required needed regions, which are the (sensible) maximum sized rectangle regions of input which are required in order to render to that output region properly.
The supplied needed_input_rectangle array is already pre-set to the maximum defined rectangle. This is useful if you cannot determine a finite needed region, as you can clip to it or leave it as it is.
The supplied output_rectangle region does not take into account the current render scaling, and the returned needed_input_rectangles regions should not either.
If ufoProcessCalcNeedRectangles is not supplied, the input needed regions default to the same as the output.
Autodesk Softimage v7.5