Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDb3dSolid::extrudeAlongPath Method
Syntax
C++
virtual OdResult extrudeAlongPath(const OdDbRegion* region, const OdDbCurve* path, double taperAngle = 0.0);

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

 

Parameters
Description
region
[in] Pointer to a region object to extrude from.
path
[in] Pointer to a curve object to extrude along. Must be one of the following:
taperAngle
[in] Extrusion taper angle in radians. The value must be between 0.5*pi and -0.5*pi. Default value is 0.0. If the path represented by the OdDbCurve object is closed, the taper angle parameter is ignored.

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

Entity path must not have self-intersections, and it is recommended that the path does 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. 

The ModelerGeometry implementation returns the eNotImplementedYet status when one of the following conditions is true:

  • taperAngle != 0.
  • The path isn't perpendicular to the region plane at the path base point. The path base point is a point on the path that is the closest to the region center from the set of:
    • All interscetion points of the region plane and the path in case when the path end point lies on the region plane.
    • Path endpoints in case when both endpoints don't lie on the region plane.
  • Both path endpoints lie on region plane and aren't equal.
Copyright © 2002-2022. Open Design Alliance All rights reserved.