API Reference > Other Classes > OdModelerGeometry Class > OdModelerGeometry Methods > OdModelerGeometry::extrudeFacesAlongPath Method
OdModelerGeometry::extrudeFacesAlongPath Method
Syntax
C++
virtual OdResult extrudeFacesAlongPath(const OdArray<OdDbSubentId *> & faceSubentIds, const OdDbCurve* path) = 0;
Parameters 
Description 
const OdArray<OdDbSubentId *> & faceSubentIds 
[in] Array of faces' subentity IDs. Faces with specified IDs will be extruded.  
const OdDbCurve* path 
[in] Pointer to a curve object to extrude along (extrusion path). Cannot be NULL.
 

eOk if successful or an appropriate error code otherwise.

Extrudes specified faces along the specified path determined by a curve entity. 

 

Faces for extrusion must be planar. 

The curve entity must be one of the following:

  • OdDbLine
  • OdDbArc
  • OdDbEllipse
  • OdDbSpline
  • OdDb2dPolyline
  • Non-spline fit OdDb3dPolyline
 

Extrusion path must not have self-intersections. Also it is recommended that the path doesn't have high curvature areas. If one of the end points of the path is not located on the region's plane, the path will move the point on the plane.

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