API Reference > OdGe Classes > OdGeCurve2d Class > OdGeCurve2d Methods > OdGeCurve2d::area Method
OdGeCurve2d::area Method
Syntax
C++
bool area(double startParam, double endParam, double& value, const OdGeTol& tol = OdGeContext::gTol) const;
Parameters 
Description 
double startParam 
[in] Parameter value of interval start.  
double endParam 
[in] Parameter value of interval end (must be greater than startParam).  
double& value 
[out] Output area of curve between startParam and endParam.  
const OdGeTol& tol = OdGeContext::gTol 
[in] Geometric tolerance. 

Gets the area of the interval of the curve defined by startParam and endParam.

Returns true if the area was successfully calculated with given tolerance. 

By default this function throws the exception "not Implemented". Should be implemented in derived classes.

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