API Reference > OdDb Classes > OdDb3dSolid Class > OdDb3dSolid Methods > createSweptSolid Method > OdDb3dSolid::createSweptSolid Method (OdDbEntity*, OdDbEntity*, OdDbSweepOptions&)
OdDb3dSolid::createSweptSolid Method (OdDbEntity*, OdDbEntity*, OdDbSweepOptions&)
Syntax
C++
virtual OdResult createSweptSolid(OdDbEntity* pSweepEnt, OdDbEntity* pPathEnt, OdDbSweepOptions& sweepOptions);
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.
 

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

Creates a swept solid by sweeping a curve, region, or planar surface 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. This method is implemented for Spatial modeler and partially for ModelerGeometry. The ModelerGeometry implementation at almost all cases returns the eNotImplementedYet status.

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