API Reference > OdDb Classes > OdDbSurface Class > OdDbSurface Methods > OdDbSurface::createFrom Method
OdDbSurface::createFrom Method
Syntax
C++
static OdResult createFrom(const OdDbEntity* pFromEntity, OdDbSurfacePtr& pNewSurface);
Parameters 
Description 
const OdDbEntity* pFromEntity 
[in] Input surface  
OdDbSurfacePtr& pNewSurface 
[out] Resulting surface
 

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

Creates an extruded surface from a 2D entity with thickness or a planar surface from a closed curve or region. 

 

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

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