API Reference > OdDb Classes > OdDb3dSolid Class > OdDb3dSolid Methods > OdDb3dSolid::offsetBody Method
OdDb3dSolid::offsetBody Method
Syntax
C++
virtual OdResult offsetBody(double offsetDistance);
Parameters 
Description 
double offsetDistance 
) [in] A distance for offset.
 

Returns eOk if all faces are successfully offset, or an appropriate error code in other case. Returns eInvalidInput if the offsetDistance is less than -maxSide/2, where maxSide is the size of the greater side of the solid's bounding box. Also eInvalidInput is returned when the absolute value of offsetDistance is less than 1e-6.

Offsets all faces by the specified distance. 

 

If a face has surfaces that cannot be offset, it is removed. Therefore, the offset operation can cause the solid to become invalid. 

This method is implemented only for Spatial modeler and returns eNotImplementedYet status for other modelers.

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