MeshProvider::GetCorrectBounds

MeshProvider::GetCorrectBounds
virtual RectF GetCorrectBounds(const Matrix2F& m, float morphRatio, StrokeGenerator* gen, const ToleranceParams* tol) const;
Description

GetCorrectBounds returns the correct (stroke) bounds for the mesh. The StrokeGenerator provides the stroker and all the necessary containers. 

In case of morphing, pass correct morphRatio, otherwise 0. Arguments gen, tol may be NULL, in which case a simplified version will be called that always assumes round joins and caps.

Parameters
Parameters 
Description 
const Matrix2F& m 
The transformation matrix used for calculating the bounding rectangle. 
float morphRatio 
The morph ratio for morphing. 
StrokeGenerator* gen 
The StrokeGenerator required for calculating the correct stroke bounds. 
const ToleranceParams* tol 
The ToleranceParams required for calculating the curve subdivision. 
Return Value

A rectangle representing a bounding box that bounds the mesh.