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

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

Slices this ModelerGeometry object with the specified plane and sets the object to be the portion on the positive normal side plane. 

 

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