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

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

Offsets the specified faces of this ModelerGeometry object for the specified distance. 

 

The following constraints are applied:

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

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