Close

Relief for ODA Team in Ukraine

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

Slices the surface with the specified surface. 

 

Parameters
Description
pSlicingSurface
[in] Pointer to the surface to be used to slice this surface.
pNegHalfSurface
[out] Pointer to a new surface object representing the other (negative) side of the sliced surface.
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. If pSlicingSurface pointer is NULL or the solid is empty, returns eInvalidInput. If the specified surface does not intersect this surface, then this surface and pNegHalfSurface are left unchanged, 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.