API Reference > OdDb Classes > OdDb3dSolid Class > OdDb3dSolid Methods > createExtrudedSolid Method > OdDb3dSolid::createExtrudedSolid Method (OdDbEntity*, OdDbSubentId&, OdGeVector3d&, OdDbSweepOptions&)
OdDb3dSolid::createExtrudedSolid Method (OdDbEntity*, OdDbSubentId&, OdGeVector3d&, OdDbSweepOptions&)
Syntax
C++
virtual OdResult createExtrudedSolid(OdDbEntity* pSweepEnt, const OdDbSubentId& faceSubentId, const OdGeVector3d& directionVec, OdDbSweepOptions& sweepOptions);
Parameters 
Description 
OdDbEntity* pSweepEnt 
[in] Pointer to the swept entity.  
const OdDbSubentId& faceSubentId 
[in] Object ID for the face that must be extruded.  
const OdGeVector3d& directionVec 
[in] Vector determining the direction and length of extruding.  
OdDbSweepOptions& sweepOptions 
[in] Set of sweeping options.
 

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

Creates a solid by extruding a face. 

 

Sweeping parameters (for example, angle) are set through the sweepOptions object reference. This method is implemented only for Spatial modeler and returns the eNotImplementedYet status for other modelers.

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