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.
 

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

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

 

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

 

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

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