API Reference > FacetModeler Namespace > Classes > Segment2D Class > Segment2D Methods > Segment2D::integrate Method
Segment2D::integrate Method
Syntax
C++
double integrate(const OdGePoint2d& ptOrigin = OdGePoint2d::kOrigin) const;
Parameters 
Description 
const OdGePoint2d& ptOrigin = OdGePoint2d::kOrigin 
[in] Point of origin. 

2 * signed area of a contour bounded by this segment and two lines connecting ptOrigin and the ends of this segment.

Gets the signed area of a contour bounded by this segment and two lines connecting ptOrigin with ends of this segment. 

 

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