API Reference > OdDb Classes > OdDb3dSolid Class > OdDb3dSolid Methods > OdDb3dSolid::offsetFaces Method
OdDb3dSolid::offsetFaces Method
Syntax
C++
virtual OdResult offsetFaces(const OdArray<OdDbSubentId *> & faceSubentIds, double offsetDistance);
Parameters 
Description 
const OdArray<OdDbSubentId *> & faceSubentIds 
[in] Array of faces' subentity IDs. Faces with specified IDs will be offset.  
double offsetDistance 
[in] Offset distance.
 

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

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

 

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 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 eNotImplementedYet status for other modelers.

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