API Reference > OdDb Classes > OdDb3dSolid Class > OdDb3dSolid Methods > OdDb3dSolid::projectOnToSolid Method
OdDb3dSolid::projectOnToSolid Method
Syntax
C++
OdResult projectOnToSolid(const OdDbEntity* pEntityToProject, const OdGeVector3d& projectionDirection, OdDbEntityPtrArray& projectedEntities) const;
Parameters 
Description 
const OdDbEntity* pEntityToProject 
[in] Pointer to the entity to be projected.  
const OdGeVector3d& projectionDirection 
[in] Vector determining the projection direction.  
OdDbEntityPtrArray& projectedEntities 
[out] Array of pointers to non-database resident entities created by the projection.
 

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

Creates non-database resident entities by projecting the specified entity along the projection direction to the solid. 

 

Specified pointer to the entity must not be equal to NULL and the entity must be of a supported type. 

When an OdDbPoint is specified as the entity to be projected, the result of the projection will be an AcDbPoint representing the nearest point on the solid. 

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

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