API Reference > OdGe Classes > OdGeCurve3d Class > OdGeCurve3d Methods > OdGeCurve3d::getGeomExtents Method
OdGeCurve3d::getGeomExtents Method
Syntax
C++
OdGeExtents3d getGeomExtents(const OdGeInterval& range = OdGeInterval(), const OdGeMatrix3d* coordSystem = NULL) const;
Parameters 
Description 
const OdGeInterval& range = OdGeInterval() 
[in] The part of the curve to be bounded.  
const OdGeMatrix3d* coordSystem = NULL 
[in] The local coordinate system in which box extents are computed. 

Returns bounding box of the whole curve or a part of it. The box is axis-aligned in the specified local coordinate system. It is guaranteed to enclose the curve, but not guaranteed to be tight/minimal. 

 

If range is unbounded (e.g. by default), then bounding box of the whole curve (which range can be obtained by getInterval method) is computed. Otherwise bounding box is computed only for the set of points with parameter in the specified range. If coordSystem is NULL (e.g. by default), then bounding box is aligned with global coordinate axes. Otherwise, the box will be axis-aligned in the local coordinate system specified by coordSystem matrix.

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