API Reference > OdGe Classes > OdGeCone Class > OdGeCone Methods > OdGeCone::intersectWith Method
OdGeCone::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 cone intersects with a line entity, false otherwise.

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

 

o p1 is valid if and only if numInt >= 1. o p2 is valid if and only if numInt = 2.

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