API Reference > FacetModeler Namespace > Classes > Segment2D Class > Segment2D Methods > Segment2D::intersectLine Method
Segment2D::intersectLine Method
Syntax
C++
OdUInt32 intersectLine(const OdGeLine2d& rGeLine, Intersection* pInt1 = NULL, Intersection* pInt2 = NULL, const OdGeTol& gTol = FMGeGbl::gTol) const;
Parameters 
Description 
const OdGeLine2d& rGeLine 
[in] Line to check for intersections with.  
Intersection* pInt1 = NULL 
[out] (Optional) First intersection object.  
Intersection* pInt2 = NULL 
[out] (Optional) Second intersection object.  
const OdGeTol& gTol = FMGeGbl::gTol 
[in] Tolerance.  

The number of intersection points.

Gets the number of intersections with the specified line. 

 

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