API Reference > OdDb Classes > OdDbSurface Class > OdDbSurface Methods > OdDbSurface::booleanUnion Method
OdDbSurface::booleanUnion Method
Syntax
C++
virtual OdResult booleanUnion(const OdDbSurfacePtr pSurface, OdDbSurfacePtr& pNewSurface);
Parameters 
Description 
const OdDbSurfacePtr pSurface 
[in] Pointer to the other surface to be united with this surface.  
OdDbSurfacePtr& pNewSurface 
[out] Pointer to a new surface that represents the union operation result.
 

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

Performs a Boolean union operation with two surfaces: this one and another specified surface. Creates a new surface entity as a result. 

 

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.