API Reference > OdGe Classes > OdGeCurve2d Class > OdGeCurve2d Methods > OdGeCurve2d::getGeomExtents Method
OdGeCurve2d::getGeomExtents Method
Syntax
C++
OdGeExtents2d getGeomExtents(const OdGeInterval& range = OdGeInterval(), const OdGeMatrix2d* coordSystem = NULL) const;
Parameters 
Description 
const OdGeInterval& range = OdGeInterval() 
[in] The part of the curve to be bounded.  
const OdGeMatrix2d* 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 unbound (e.g. by default), the bounding box of the whole curve (range can be obtained by the getInterval method) is computed. Otherwise bounding box is computed only for the set of points with the 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 the coordSystem matrix.

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