API Reference > OdDb Classes > OdDbMPolygon Class > OdDbMPolygon Methods > OdDbMPolygon::getMPolygonTree Method
OdDbMPolygon::getMPolygonTree Method
Syntax
C++
virtual OdResult getMPolygonTree(OdDbMPolygonNode*& loopNode) const;
Parameters 
Description 
OdDbMPolygonNode*& loopNode 
[out] set pointer to root node of tree  

eOk if creating tree is successful.

Creates a nesting tree of nodes. Where the nodes represent the nesting of the loops. 

 

  • Return eOk if count loops in OdDbMPolygon is zero.
  • To avoid memory leak need use OdDbMPolygon::deleteMPolygonTree(loopNode).
  • If loops in OdDbMPolygon was changed, need get new tree by OdDbMPolygon::getMPolygonTree(loopNode).
Copyright © 2002–2020. Open Design Alliance. All rights reserved.