API Reference > OdDb Classes > OdDbMline Class > OdDbMline Methods > OdDbMline::element Method
OdDbMline::element Method
Syntax
C++
int element(const OdGePoint3d & pt) const;
Parameters 
Description 
const OdGePoint3d & pt 
[in] Point to find intersection with Mline elements. 

Attempts to find which element of the Mline object contains the point.

If an element is not found that directly contains the point and the Mline object is not closed, then the ends of the MLine object are virtually extended to see if point lies in the path of any element. If successful, the index number of the element that contains point is returned. If not successful, then -1 is returned.

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