API Reference > Other Classes > OdModelerGeometry Class > OdModelerGeometry Methods > OdModelerGeometry::extrudeFaces Method
OdModelerGeometry::extrudeFaces Method
Syntax
C++
virtual OdResult extrudeFaces(const OdArray<OdDbSubentId *> & faceSubentIds, double height, double taper) = 0;
Parameters 
Description 
const OdArray<OdDbSubentId *> & faceSubentIds 
[in] Face's subentity ID in the drawing object.  
double height 
[in] Distance of extrusion.  
double taper 
[in] Taper angle.
 

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

Extrudes faces of the ModelerGeometry object with specified distance and taper angle. 

 

The distance of extrusion is determined by the height parameter and the taper angle (the taper parameter). 

The extrusion direction can be along or opposite the normal of each extruded face depending on the height value:

  • If height is positive, direction is along the normal (extruding faces outward from the drawing object).
  • If height is negative, direction is opposite the normal (extruding faces into the drawing object).
 

If the absolute value of taper is less than 1e-6, taper angle is assumed to be equal to 0.0. 

If taper value does not equal 0.0, each face should have edges that join together smoothly (i.e. tangents at the points of connection must be equal). 

The following constraints are applied:

  • number of specified faces (in faceSubentIds parameter) must be more than zero
  • |height| >= 1e-6
  • |taper| >= (PI/2) - 1e-6

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