API Reference > OdDb Classes > OdDbSurface Class > OdDbSurface Methods > booleanSubtract Method > OdDbSurface::booleanSubtract Method (OdDb3dSolidPtr, OdDbSurfacePtr&)
OdDbSurface::booleanSubtract Method (OdDb3dSolidPtr, OdDbSurfacePtr&)
Syntax
C++
virtual OdResult booleanSubtract(const OdDb3dSolidPtr pSolid, OdDbSurfacePtr& pNewSurface);
Parameters 
Description 
const OdDb3dSolidPtr pSolid 
[in] Pointer to the specified solid to be subtracted from the surface.  
OdDbSurfacePtr& pNewSurface 
[out] Pointer to a new surface that represents the subtraction operation result.
 

Returns eOk if the subtraction operation is successfully performed or an appropriate error code otherwise. If the subtraction operation fails, NULL is returned as a value of pNewSurface.

Performs a Boolean subtraction operation with a specified solid object and the surface. Creates a new surface entity as a result of subtracting the specified solid from this surface. 

 

Resulting surface is not included in the database, so caller is responsible for the correct handling of the memory pointed to with pNewSurface. 

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

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