API Reference > FacetModeler Namespace > Classes > Profile2D Class > Profile2D Methods > fit Method > Profile2D::fit Method (OdGeExtents2d&, bool, bool, DeviationParams&)
Profile2D::fit Method (OdGeExtents2d&, bool, bool, DeviationParams&)
Syntax
C++
void fit(const OdGeExtents2d& extBoundingBox, bool bFitX, bool bFitY, const DeviationParams& devDeviation = FMGeGbl::gDefDev);
Parameters 
Description 
const OdGeExtents2d& extBoundingBox 
[in] Bounding box to fit in.  
bool bFitX 
[in] true to fit in the X bounds of the box, or false to ignore.  
bool bFitY 
[in] true to fit in the Y bounds of the box, or false to ignore.  
const DeviationParams& devDeviation = FMGeGbl::gDefDev 
[in] Deviation parameters. 

Adjusts the profile to a bounding box extents. 

 

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