API Reference > OdGe Classes > OdGeClipBoundary2d Class > OdGeClipBoundary2d Methods > OdGeClipBoundary2d::clipPolygon Method
OdGeClipBoundary2d::clipPolygon Method
Syntax
C++
OdGe::ClipError clipPolygon(const OdGePoint2dArray& rawVertices, OdGePoint2dArray& clippedVertices, OdGe::ClipCondition& clipCondition, OdGeIntArray* pClippedSegmentSourceLabel = NULL) const;
Parameters 
Description 
const OdGePoint2dArray& rawVertices 
[in] Array of 2D points that define the input polygon. Self-intersecting and winding polygons are allowed.  
OdGePoint2dArray& clippedVertices 
[out] Receives an array of 2D points that define the clipped resulting closed polygon.  
OdGe::ClipCondition& clipCondition 
[out] Receives the information about the spatial relationship between the clip boundary and the input clipped polygon.  
OdGeIntArray* pClippedSegmentSourceLabel = NULL 
[in] Optional segment label information identifying the source of each segment in the clipped polygon. 

eOk if clipped successfully, or an appropriate error code otherwise.

Clips a closed polygon, creating a second closed polygon. Currently not implemented. 

 

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