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

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

Extrudes faces of the solid with the 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 the height is positive, direction is along the normal (extruding faces outward from the solid).
  • If the height is negative, direction is opposite the normal (extruding faces into the solid).

 

If the absolute value of the taper is less than 1e-6, the taper angle is assumed to be equal to 0.0. If the taper value is not equal to 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 the faceSubentIds parameter) must be more than zero.
  • |height| >= 1e-6
  • |taper| >= (PI/2) - 1e-6

 

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

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