Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDb3dSolid::offsetFaces Method
Syntax
C++
virtual OdResult offsetFaces(const OdArray<OdDbSubentId *> & faceSubentIds, double offsetDistance);

Offsets the specified faces of the solid for the specified distance. 

 

Parameters
Description
faceSubentIds
[in] Array of faces' subentity IDs. Faces with specified IDs will be offset.
offsetDistance
[in] Offset distance.

eOk if successful or an appropriate error code in other case.

Faces with surfaces that cannot be offset are removed and the solid is healed, if possible. The following constraints are applied:

  • Number of specified faces (in the faceSubentIds parameter) must be more than zero.
  • offsetDistance >= minus half of the max side of the solid's bounding box.
  • |offsetDistance| >= 1e-6.

 

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

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