API Reference > OdGe Classes > OdGeExtents3d Class > OdGeExtents3d Methods > OdGeExtents3d::intersectWith Method
OdGeExtents3d::intersectWith Method
Syntax
C++
IntersectionStatus intersectWith(const OdGeExtents3d& extents, OdGeExtents3d* pResult = 0) const;
Parameters 
Description 
const OdGeExtents3d& extents 
[in] Any 3D Extents object.  
OdGeExtents3d* pResult = 0 
[out] Receives extents of the intersection. 

Determines the intersection of the specified Extents object with this one, and returns the resulting intersection box. 

 

pResult object should be created by the caller. Possible return values are as follows. 

untitled table kIntersectUnknown Either or both extents boxes are invalid kIntersectNot The extents boxes are NOT intersecting kIntersectOpIn The specified Extents object is completely within this one kIntersectOpOut This Extents object is completely within the specified one kIntersectOk The extents boxes are intersecting, and a result is returned

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