[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[task #13658] Work on concave polygons too

From: Sachin Kumar Singh
Subject: [task #13658] Work on concave polygons too
Date: Tue, 17 Mar 2020 11:23:14 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:73.0) Gecko/20100101 Firefox/73.0

Follow-up Comment #18, task #13658 (project gnuastro):

When I put 

printf("[%.3f, %.3f]\n", ipolygon[i*2], ipolygon[i*2+1]); 

inside the `POLYGON_MASK' macro in onecrop.c inside its `if' statement, after
the first 10 correct vertices(in shifted coordinates), it outputs a lot of
(0.000, 0.000) after the last correct point ((68.956700, 408.959500) in this
case).When I draw the polygon the bend is there due to this (0, 0) coordinate.
I think it's a garbage valve. If I try to prevent it using `if' statement, it
shows a segmentation fault. How to prevent it?

(file #48614)

Additional Item Attachment:

File name: Figure_1.png                   Size:30 KB


Reply to this item at:


  Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]