API Reference > OdDb Classes > OdDbSurface Class > OdDbSurface Methods > OdDbSurface::sliceBySurface Method
OdDbSurface::sliceBySurface Method
Syntax
C++
virtual OdResult sliceBySurface(const OdDbSurfacePtr pSlicingSurface, OdDbSurfacePtr& pNegHalfSurface, OdDbSurfacePtr& pNewSurface);
Parameters 
Description 
const OdDbSurfacePtr pSlicingSurface 
[in] Pointer to the surface to be used to slice this surface.  
OdDbSurfacePtr& pNegHalfSurface 
[out] Pointer to a new surface object representing the other (negative) side of the sliced surface.  
OdDbSurfacePtr& pNewSurface 
[out] Pointer to a new surface object representing the positive side of the sliced surface.
 

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

Slices the surface with the specified surface. 

 

If the specified surface does not intersect this surface and this surface is left unchanged, pNegHalfSurface is set to NULL. 

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

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