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] Pointer to the root node of the tree.  

eOk if tree creation is successful.

Creates a nesting tree of nodes, where the nodes represent the nesting of the loops. 

 

  • Return eOk if the loops count in OdDbMPolygon is zero.
  • To avoid memory leaks use OdDbMPolygon::deleteMPolygonTree(loopNode).
  • If loops in OdDbMPolygon were changed, get a new tree using this function.
Copyright © 2002–2021. Open Design Alliance. All rights reserved.