Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdModelerGeometry::extrudeFaces Method
Syntax
C++
virtual OdResult extrudeFaces(const OdArray<OdDbSubentId *> & faceSubentIds, double height, double taper) = 0;

Extrudes faces of the ModelerGeometry object with specified distance and taper angle. 

 

Parameters
Description
faceSubentIds
[in] Face's subentity ID in the drawing object.
height
[in] Distance of extrusion.
taper
[in] Taper angle.

eOk if successful or an appropriate error code otherwise.

The distance of extrusion is determined by the height parameter and the taper angle (the taper parameter). 

The extrusion direction can be along or opposite the normal of each extruded face depending on the height value:

  • If the height is positive, the direction is along the normal (extruding faces outward from the drawing object).
  • If the height is negative, the direction is opposite the normal (extruding faces into the drawing object).

 

If the absolute value of taper is less than 1e-6, taper angle is assumed to be equal to 0.0. 

If the taper value does not equal 0.0, each face should have edges that join together smoothly (i.e. tangents at the points of connection must be equal). 

The following constraints are applied:

  • The number of specified faces (in faceSubentIds parameter) must be more than zero
  • |height| >= 1e-6
  • |taper| >= (PI/2) - 1e-6
Copyright © 2002-2022. Open Design Alliance All rights reserved.