API Reference > Other Classes > OdModelerGeometry Class > OdModelerGeometry Methods > OdModelerGeometry::createExtrudedObject Method
OdModelerGeometry::createExtrudedObject Method
Syntax
C++
virtual OdResult createExtrudedObject(OdDbEntity* pSweepEnt, const OdGeVector3d& directionVec, OdDbSweepOptions& sweepOptions, bool isSolid = true, bool bHistoryEnabled = false) = 0;
Parameters 
Description 
OdDbEntity* pSweepEnt 
[in] A pointer to the swept entity.  
const OdGeVector3d& directionVec 
[in] Vector determining the direction and length of extruding.  
OdDbSweepOptions& sweepOptions 
[in] A set of sweeping options.  
bool isSolid = true 
[in] Boolean flag that indicates that this ModelerGeometry object is solid.
 

Returns eOk if extruding was successful or an appropriate error code in other case.

Creates an object by sweeping a planar curve, region, or planar surface in the direction of the given vector using a distance equal to the length of the vector. 

 

Sweeping parameters (for example, angle) are set through the sweepOptions object reference.

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