API Reference > OdDb Classes > OdDbSweptSurface Class > OdDbSweptSurface Methods > OdDbSweptSurface::createSweptSurface Method
OdDbSweptSurface::createSweptSurface Method
Syntax
C++
virtual OdResult createSweptSurface(OdDbEntity* pSweepEnt, OdDbEntity* pPathEnt, OdDbSweepOptions& sweepOptions, const OdStreamBuf * pSat = 0);
Parameters 
Description 
OdDbEntity* pSweepEnt 
[in] A pointer to the curve, region, or planar surface to be swept.  
OdDbEntity* pPathEnt 
[in] A pointer to the curve entity that specifies the sweeping path along which a specified entity should to be swept.  
OdDbSweepOptions& sweepOptions 
[in] Additional sweep options.
 

Returns eOk if a surface was successfully created or eFail for other modelers. If specified sweep information is not valid, returns eInvalidInput. Returns eFail if the surface cannot be created.

Creates a swept surface by sweeping a specified curve, region, or planar surface along a specified path curve. 

 

Additional parameters, such as a draft angle, can be set through the sweepOptions parameter.

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