API Reference > OdDb Classes > OdDb3dSolid Class > OdDb3dSolid Methods > OdDb3dSolid::extrudeAlongPath Method
OdDb3dSolid::extrudeAlongPath Method
Syntax
C++
virtual OdResult extrudeAlongPath(const OdDbRegion* region, const OdDbCurve* path, double taperAngle = 0.0);
Parameters 
Description 
const OdDbRegion* region 
[in] A pointer to a region object for extruding from  
const OdDbCurve* path 
[in] A pointer to a curve object to extrude along. Must be one of the following:
  • Line
  • OdDbArc
  • OdDbCircle
  • Ellipse
  • OdDbSpline
  • OdDb2dPolyline
  • non-spline fit OdDb3dPolyline

 
double taperAngle = 0.0 
[in] Extrusion taper angle in radians. Default value is 0.0. Value must be between 0.5 pi and -0.5 pi. If the path represented by the OdDbCurve object is closed, the taper angle parameter is ignored.
 

Returns eOk if extruding operation is successful or an appropriate error code if not. If solid is null, eInvalidInput is returned.

Creates a solid by extruding a region along a path curve. 

 

Entity path must not have self-intersections, and it is recommended that the path not have high curvature areas. 

The following constraints are applied: |taper Angle| >= 1e-6 

This method is implemented for Spatial modeler and partially for ModelerGeometry. 

ModelerGeometry implementation return eNotImplementedYet status when one of the condition is true:

  • taperAngle != 0.
  • path doesn't perpendicular to region plane at path base point. The path base point is point on path that closest to region center from set:

All interscetion points of region plane and path in case when path end point lie on region plane. Path endpoints in case when both endpoints doesn't lie on region plane.

  • both path endpoints lie on region plane and aren't equal.
Copyright © 2002–2020. Open Design Alliance. All rights reserved.