API Reference > Functions > isPolygonOutOfRect2d Function
isPolygonOutOfRect2d Function
Syntax
C++
GE_TOOLKIT_EXPORT bool isPolygonOutOfRect2d(OdUInt32 numPt, const OdGePoint2d* pPoints, const OdGePoint2d& minPt, const OdGePoint2d& maxPt);

GeGbl.h

Parameters 
Description 
OdUInt32 numPt 
[in] Count of polygon points.  
const OdGePoint2d* pPoints 
[in] Pointer to an array of polygon points.  
const OdGePoint2d& minPt 
[in] Minimum extents point.  
const OdGePoint2d& maxPt 
[in] Maximum extents point. 

Returns true if polygon is out of the rectangle or if polygon contains a rectangle. This method returns false if the polygon is inside the specified rectangle or if they intersect.

Determines whether the polygon is out of the specified rectangle. 

 

Corresponding C++ library: TD_Ge

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