API Reference > OdBr Classes > OdBrMesh2dControl Class > OdBrMesh2dControl Methods > OdBrMesh2dControl::setMaxAspectRatio Method
OdBrMesh2dControl::setMaxAspectRatio Method
Syntax
C++
OdBrErrorStatus setMaxAspectRatio(double maxAspectRatio = 0);
Parameters 
Description 
double maxAspectRatio = 0 
[in] The value of the ratio.
 

Returns odbrOK if successful, or an appropriate error code if not.

Sets the maximum aspect ratio between width and height for a 2D mesh element. 

 

If the argument value is between zero and one, the aspect ratio relationship is inverted to a height-to-width ratio.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.