API Reference > OdDb Classes > OdDbSurface Class > OdDbSurface Methods > booleanIntersect Method > OdDbSurface::booleanIntersect Method (OdDbSurfacePtr, OdDbEntityPtrArray&)
OdDbSurface::booleanIntersect Method (OdDbSurfacePtr, OdDbEntityPtrArray&)
Syntax
C++
virtual OdResult booleanIntersect(const OdDbSurfacePtr pSurface2, OdDbEntityPtrArray& intersectionEntities);
Parameters 
Description 
const OdDbSurfacePtr pSurface2 
[in] Pointer to the other surface to be intersected with the surface.  
OdDbEntityPtrArray& intersectionEntities 
[out] A reference to an entity array for storing the results of the intersection operation. The resulting array can contain the following entity types: OdDbSurface, OdDbLine, OdDbCircle, OdDbArc, OdDbEllipse, and OdDbSpline.
 

Returns eOk if the intersection operation is successfully performed or an appropriate error code otherwise.

Performs a Boolean intersection operation for two surfaces: this one and another specified surface. Entities representing the intersections between two entities are stored in an array. 

 

Resulting entities are not included in the database, so the caller is responsible for the correct handling of the memory pointed to with the resulting array's items. 

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

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