API Reference > OdDb Classes > OdDb3dSolid Class > OdDb3dSolid Methods > createSweptSolid Method > OdDb3dSolid::createSweptSolid Method (OdDbEntity *, OdDbSubentId&, OdDbEntity*, OdDbSweepOptions&)
OdDb3dSolid::createSweptSolid Method (OdDbEntity *, OdDbSubentId&, OdDbEntity*, OdDbSweepOptions&)
Syntax
C++
virtual OdResult createSweptSolid(OdDbEntity * pSweepEnt, const OdDbSubentId& faceSubentId, OdDbEntity* pPathEnt, OdDbSweepOptions& sweepOptions);
Parameters 
Description 
OdDbEntity * pSweepEnt 
[in] Pointer to face entity for sweeping.  
const OdDbSubentId& faceSubentId 
[in] Face's subentity ID.  
OdDbEntity* pPathEnt 
[in] Pointer to the curve entity that determines the path to sweep along.  
OdDbSweepOptions& sweepOptions 
[in] Sweep options.
 

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

Creates a swept solid 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 align() method) is kNoAlignment. Set it to kAlignSweepEntityToPath before calling this method. 

This method is implemented only for Spatial modeler and returns eNotImplementedYet status for other modelers.

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