Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdModelerGeometry::offsetBody Method
Syntax
C++
virtual OdResult offsetBody(double offsetDistance) = 0;

Offsets all faces by the specified distance. 

 

Parameters
Description
offsetDistance
[in] Distance for offset.

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 ModelerGeometry object's bounding box. Also, eInvalidInput is returned when the absolute value of offsetDistance is less than 1e-6.

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

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