API Reference > OdDb Classes > OdDb3dSolid Class > OdDb3dSolid Methods > OdDb3dSolid::createFrom Method
OdDb3dSolid::createFrom Method
Syntax
C++
virtual OdResult createFrom(const OdDbEntity* pFromEntity);
Parameters 
Description 
const OdDbEntity* pFromEntity 
[in] Pointer to an entity from which the solid must be created.
 

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

Creates a 3D solid from the specified entity. 

 

An entity to create from must enclose a volume and can be one of the following:

  • OdDbSurface
  • OdDbSubDMesh
  • closed curve with thickness
  • thick OdDbSolid
  • thick OdDbTrace
  • polyline with constant width and thickness

 

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

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