API Reference > OdGe Classes > OdGeEllipCylinder Class > OdGeEllipCylinder Methods > OdGeEllipCylinder::intersectWith Method
OdGeEllipCylinder::intersectWith Method
Syntax
C++
bool intersectWith(const OdGeLinearEnt3d& linEnt, int& numInt, OdGePoint3d& p1, OdGePoint3d& p2, const OdGeTol& tol = OdGeContext::gTol) const;
Parameters 
Description 
int& numInt 
[out] Receives the number of intersections.  
OdGePoint3d& p1 
[out] Receives the first intersection point.  
OdGePoint3d& p2 
[out] Receives the second intersection point.  
const OdGeTol& tol = OdGeContext::gTol 
[in] Geometric tolerance. 
lineEnt 
[in] Any 3D line entity.  

true if and only if this cylinder intersects with a line entity.

Checks if the cylinder intersects with a line entity, and returns the number of intersections and the points of intersection. 

 

  • p1 is valid only if numInt > 0.
  • p2 is valid only if numInt > 1.

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