API Reference > OdIfc Namespace > Classes > OdIfcModelerGeometry Class > OdIfcModelerGeometry Methods > OdIfcModelerGeometry::extrude Method
OdIfcModelerGeometry::extrude Method
Syntax
C++
virtual OdResult extrude(OdIfcProfileDefPtr profile, OdGeVector3d dir) = 0;
Parameters 
Description 
OdIfcProfileDefPtr profile 
[in] A smart pointer to the base profile for the extrusion.  
OdGeVector3d dir 
[in] A vector object that represents the length and the direction of the extrusion. 

Returns the operation result code:

  • eOk if the extrusion was performed successfully.
  • eNullEntityPointer if the smart pointer to the base profile is NULL.
  • eEmptySet if the base profile has no contours.
  • eGeneralModelingFailure in other cases.

Creates an extrusion body and stores it in the geometry modeler object. 

 

Copyright (c) 2002-2021. Open Design Alliance. All rights reserved.