API Reference > Other Classes > OdModelerGeometry Class > OdModelerGeometry Methods > OdModelerGeometry::createSweptObject Method
OdModelerGeometry::createSweptObject Method
Syntax
C++
virtual OdResult createSweptObject(OdDbEntity* pSweepEnt, OdDbEntity* pPathEnt, OdDbSweepOptions& sweepOptions, bool isSolid = true, bool bHistoryEnabled = false) = 0;
Parameters 
Description 
OdDbEntity* pSweepEnt 
[in] Pointer to the face entity for sweeping.  
OdDbEntity* pPathEnt 
[in] Pointer to the curve entity that determines the path to sweep along.  
OdDbSweepOptions& sweepOptions 
[in] Sweep options.  
bool isSolid = true 
[in] Boolean flag that indicates that this ModelerGeometry object is solid.  
bool bHistoryEnabled = false 
[in] Boolean flag that indicates whether history recording is enabled.
 

eOk if successful or an appropriate error code otherwise.

Creates a swept object by sweeping a face along the specified path. 

 

To set optional sweep parameters (for example, draft angle) use the sweepOptions parameter. The default value for the alignment option of OdDbSweepOptions (returned by the align() method) is kNoAlignment. Set it to kAlignSweepEntityToPath before calling this method.

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