API Reference > OdDb Classes > OdDbSurface Class > OdDbSurface Methods > OdDbSurface::sliceByPlane Method
OdDbSurface::sliceByPlane Method
Syntax
C++
virtual OdResult sliceByPlane(const OdGePlane& slicePlane, OdDbSurfacePtr& pNegHalfSurface, OdDbSurfacePtr& pNewSurface);
Parameters 
Description 
const OdGePlane& slicePlane 
[in] Reference to the plane object to be used for slicing the surface.  
OdDbSurfacePtr& pNegHalfSurface 
[out] Pointer to a new surface representing the negative side of the surface that is sliced by the specified plane.  
OdDbSurfacePtr& pNewSurface 
[out] Pointer to a new surface representing the positive half of the surface that is sliced by the specified plane.
 

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

Slices the surface with the specified plane and sets the surface to be the portion on the positive normal side plane. 

 

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.