API Reference > Other Classes > OdModelerGeometry Class > OdModelerGeometry Methods > OdModelerGeometry::separateBody Method
OdModelerGeometry::separateBody Method
Syntax
C++
virtual OdResult separateBody(OdDb3dSolidPtrArray & newSolids) = 0;
Parameters 
Description 
OdDb3dSolidPtrArray & newSolids 
[out] 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.

virtual OdResult offsetBody(OdDbEntity* pOffsetEnt, double offsetDistance) = 0;

  • details Separates the ModelerGeometry object into an array of solids representing the additional disjoint volumes. This ModelerGeometry object 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.

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