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). Can not be NULL.
 

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

Faces for extrusion must be planar. 

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.

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

 

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