API Reference > OdDb Classes > OdDb3dSolid Class > OdDb3dSolid Methods > OdDb3dSolid::extrudeFacesAlongPath Method
OdDb3dSolid::extrudeFacesAlongPath Method
Syntax
C++
virtual OdResult extrudeFacesAlongPath(const OdArray<OdDbSubentId *> & faceSubentIds, const OdDbCurve* path);
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 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. 

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

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

 

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