Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdModelerGeometry::sliceBySurface Method
Syntax
C++
virtual OdResult sliceBySurface(const OdDbSurfacePtr pSlicingSurface, OdDbSurfacePtr& pNegHalfSurface, OdDbSurfacePtr& pNewSurface, bool bNotModifyItself) = 0;

Slices this ModelerGeometry object with the specified surface. 

 

Parameters
Description
pSlicingSurface
[in] Pointer to the surface to be used to slice this object.
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.
bNotModifyItself
[in] Boolean flag.

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, returns eNoIntersections.

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