[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: |
Wed, 18 Mar 2020 03:06:04 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:73.0) Gecko/20100101 Firefox/73.0 |
Follow-up Comment #21, task #13658 (project gnuastro):
Two new functions are added in `polygon.c' and pushed to `task-is-in-polygon'
branch :
[https://github.com/sachinkumarsingh092/gnuastro/tree/task-is-in-polygon]
Also, I figured out the problem with the extra point and fixed it manually,
but need to implement it as a general solution. The problem is that my
function need n+1 points(the last edge from v[n-1] to v[0] is also required).
We can do this by checking the type of polygon. If it is concave, we need to
`realloc(ipolygon, 2*(nvertices+1)*sizeof *ipolygon)` the `ipolygon` to insert
2 more points(the first points) and similarly ordinds. But while doing so,
error arise:
` ignoring return value of ‘realloc’, declared with attribute
warn_unused_result`.
How to implement my function so that it can use the n+1 points?
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/task/?13658>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [task #13658] Work on concave polygons too, (continued)
- Message not available
- [task #13658] Work on concave polygons too, Sachin Kumar Singh, 2020/03/09
- [task #13658] Work on concave polygons too, Sachin Kumar Singh, 2020/03/09
- Message not available
- [task #13658] Work on concave polygons too, Sachin Kumar Singh, 2020/03/12
- [task #13658] Work on concave polygons too, Mohammad Akhlaghi, 2020/03/14
- [task #13658] Work on concave polygons too, Sachin Kumar Singh, 2020/03/14
- Message not available
- [task #13658] Work on concave polygons too, Mohammad Akhlaghi, 2020/03/14
- [task #13658] Work on concave polygons too, Sachin Kumar Singh, 2020/03/15
- Message not available
- [task #13658] Work on concave polygons too, Sachin Kumar Singh, 2020/03/17
- Message not available
- [task #13658] Work on concave polygons too, Sachin Kumar Singh, 2020/03/17
- [task #13658] Work on concave polygons too, Sachin Kumar Singh, 2020/03/17
- Message not available
- Message not available
- [task #13658] Work on concave polygons too,
Sachin Kumar Singh <=
- [task #13658] Work on concave polygons too, Sachin Kumar Singh, 2020/03/18
- Message not available
- [task #13658] Work on concave polygons too, Sachin Kumar Singh, 2020/03/18
- Message not available
- [task #13658] Work on concave polygons too, Sachin Kumar Singh, 2020/03/18
- [task #13658] Work on concave polygons too, Sachin Kumar Singh, 2020/03/19
- [task #13658] Work on concave polygons too, Mohammad Akhlaghi, 2020/03/19
- [task #13658] Work on concave polygons too, Sachin Kumar Singh, 2020/03/21
- [task #13658] Work on concave polygons too, Mohammad Akhlaghi, 2020/03/21
- Message not available
- [task #13658] Work on concave polygons too, Mohammad Akhlaghi, 2020/03/28
- [task #13658] Work on concave polygons too, Sachin Kumar Singh, 2020/03/29
- [task #13658] Work on concave polygons too, Mohammad Akhlaghi, 2020/03/29