API Reference > Other Classes > OdModelerGeometry Class > OdModelerGeometry Methods > OdModelerGeometry::rayTest Method
OdModelerGeometry::rayTest Method
Syntax
C++
virtual OdResult rayTest(const OdGePoint3d& rayBasePoint, const OdGeVector3d& rayDir, double rayRadius, OdArray<OdDbSubentId> & subEntIds, OdGeDoubleArray& parameters) const = 0;
Parameters 
Description 
const OdGePoint3d& rayBasePoint 
[in] A base point to start a ray from.  
const OdGeVector3d& rayDir 
[in] A ray direction.  
double rayRadius 
[in] A ray radius. It defines the tolerance used for intersection checking.  
OdArray<OdDbSubentId> & subEntIds 
[out] A reference to subentities array to return. Returned subentities can be one of the following: faces, edges, or vertices.  
OdGeDoubleArray& parameters 
[out] An array of parameters to return. Parameters shows the intersection between a ray and subentities.
 

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

Creates a ray which starts from a specified point and has a specified direction. 

 

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