API Reference > OdDb Classes > OdDb3dSolid Class > OdDb3dSolid Methods > OdDb3dSolid::separateBody Method
OdDb3dSolid::separateBody Method
Syntax
C++
virtual OdResult separateBody(OdDb3dSolidPtrArray & newSolids);
Parameters 
Description 
OdDb3dSolidPtrArray & newSolids 
[out] A reference to an array of pointers to OdDb3dSolid objects representing the additional disjoint volumes.
 

Returns eOk if separating was successful or an appropriate error code in other case.

Separates the solid into an array of solids representing the additional disjoint volumes. This solid is reduced to a solid with one volume. 

 

The calling application is responsible for the resulting entities (either appending them to a database or deleting them when they are no longer needed). If the new solids from the output array are not appended to the database, there will be a memory leak. 

This method is implemented only for Spatial modeler and returns eNotImplementedYet status for other modelers.

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