Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDbSurface::sliceByPlane Method
Syntax
C++
virtual OdResult sliceByPlane(const OdGePlane& slicePlane, OdDbSurfacePtr& pNegHalfSurface, OdDbSurfacePtr& pNewSurface);

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

 

Parameters
Description
slicePlane
[in] Reference to the plane object to be used for slicing the surface.
pNegHalfSurface
[out] Pointer to a new surface representing the negative side of the surface that is sliced by the specified plane.
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. If solid is empty, returns eInvalidInput. If the specified plane does not intersect this surface, then this surface is left unchanged, pNegHalfSurface is set to NULL, eNoIntersections is returned.

If this surface is OdDbSurface or OdDbPlaneSurface, positive part will be stored in this surface. Otherwise, positive part will be stored in pNewSurface and this surface will not be changed.

Copyright © 2002-2022. Open Design Alliance All rights reserved.