API Reference > OdDb Classes > OdDbSurface Class > OdDbSurface Methods > createOffsetSurface Method > OdDbSurface::createOffsetSurface Method (OdDbEntity*, double, bool, OdDbObjectId&)
OdDbSurface::createOffsetSurface Method (OdDbEntity*, double, bool, OdDbObjectId&)
Syntax
C++
static OdResult createOffsetSurface(OdDbEntity* pInputSurface, double dOffsetDistance, bool bAssociativeEnabled, OdDbObjectId& offsetSurfaceId);
Parameters 
Description 
OdDbEntity* pInputSurface 
[in] Pointer to the surface to be offset.  
double dOffsetDistance 
[in] Offset distance.  
bool bAssociativeEnabled 
[in] Associativity flag value. The associativity flag indicates whether the patch surface associativity is enabled (if true) or disabled (if false).  
OdDbObjectId& offsetSurfaceId 
[out] Offset surface identifier to return.
 

eOk if the offset surface was successfully created or an appropriate error code in the other case.

Creates an offset surface and includes it in the current database. 

 

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

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