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 a 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.
 

Returns 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 only for Spatial modeler and returns eNotImplementedYet status for other modelers.

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