Wire with only overlapping edges.

How can I determine if all the edges of a wire overlap, such that the wire encloses no area?

Dave Carkeet's picture

Calculate the area with the following

double DCSSignedArea( CArray& cx,
// The X coordinates.
CArray& cy
// The Y coordinates.
)

{

double sum = 0;
// The signed area.
int nxtv;
// Counter.

for ( nxtv=0; nxtv