API Reference > Other Classes > OdModelerGeometry Class > OdModelerGeometry Methods > OdModelerGeometry::extrude Method
OdModelerGeometry::extrude Method
Syntax
C++
virtual OdResult extrude(const OdDbRegion* pRegion, double height, double taperAngle, bool isSolid = true) = 0;
Parameters 
Description 
const OdDbRegion* pRegion 
[in] Pointer to the region to be extruded.  
double height 
[in] Height of the extrusion.  
double taperAngle 
[in] Taper angle.  
bool isSolid = true 
[in] Boolean flag that indicates that this ModelerGeometry object is solid. 

Creates a solid by extruding the specified region. 

 

The extrusion direction is along the normal of the region. Height can be negative. 

All angles are expressed in radians. 

The following constraints apply:

  • |height| >= 1e-6
  • |taperAngle| < OdaPI2 - 1e-6

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