API Reference > OdDb Classes > OdDbSurface Class > OdDbSurface Methods > booleanSubtract Method > OdDbSurface::booleanSubtract Method (OdDbSurfacePtr, OdDbSurfacePtr&)
OdDbSurface::booleanSubtract Method (OdDbSurfacePtr, OdDbSurfacePtr&)
Syntax
C++
virtual OdResult booleanSubtract(const OdDbSurfacePtr pSurface, OdDbSurfacePtr& pNewSurface);
Parameters 
Description 
const OdDbSurfacePtr pSurface 
[in] Pointer to the other surface to be subtracted from this 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 two surfaces: this one and another specified surface. Creates a new surface entity as a result of subtracting the specified surface 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.