API Reference > OdDb Classes > OdDbSurface Class > OdDbSurface Methods > OdDbSurface::projectOnToSurface Method
OdDbSurface::projectOnToSurface Method
Syntax
C++
OdResult projectOnToSurface(const OdDbEntity* pEntityToProject, const OdGeVector3d& projectionDirection, OdDbEntityPtrArray& projectedEntities) const;
Parameters 
Description 
const OdDbEntity* pEntityToProject 
[in] Pointer to the entity to be projected. If the entity to project is represented by an OdDbPoint object, an OdDbPoint object, representing the nearest point on the surface, is returned.  
const OdGeVector3d& projectionDirection 
[in] Vector specifying the direction of the projection.  
OdDbEntityPtrArray& projectedEntities 
[out] Array of pointers to entities created by the projection.
 

Returns eOk if projecting operation was successfully finished or an appropriate error code otherwise.

Creates entities by projecting the specified entity along the projection direction to the surface. 

 

All entities created as a result of projection are not included in the database, so the caller is responsible for managing the memory occupied with these entities. 

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

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