API Reference > FacetModeler Namespace > Classes > Contour2D Class > Contour2D Methods > Contour2D::createSquare Method
Contour2D::createSquare Method
Syntax
C++
static Contour2D createSquare(const OdGePoint2d & center, double side);
Parameters 
Description 
const OdGePoint2d & center 
[in] Coordinates of center.  
double side 
[in] Side length value.  

Square contour as Contour2D.

Creates Contour2D as square with center point and side length specified. 

 

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