Timeline for Selecting points inside a closed curve
Current License: CC BY-SA 3.0
16 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 13, 2017 at 12:55 | history | edited | CommunityBot | replaced http://mathematica.stackexchange.com/ with https://mathematica.stackexchange.com/ | |
| Jun 19, 2016 at 14:58 | comment | added | Vaggelis_Z | Many thanks! Your solution in v9 works fine. I borrowed a newer laptop with v10 installed and your second solution also works like a charm! | |
| Jun 19, 2016 at 14:56 | vote | accept | Vaggelis_Z | ||
| Jun 19, 2016 at 12:11 | comment | added | Sumit | Check if your poly is a {n,2} array (Dimensions[poly]). Looks like there is an extra {}. In that case just use poly[[1]] in inPolyQ. | |
| Jun 19, 2016 at 11:40 | comment | added | Vaggelis_Z | Now I get the following error message: GraphicsMeshPointWindingNumber::invpoly: -- Message text not found -- (GraphicsMeshPointWindingNumber[{{{2.88617,0.},{2.8451,0.45062},{2.42173,0.786868},<<35>>,{2.20662,-0.716976},{2.50074,-0.396078},{2.99428,0.}}},{-4.,-4.}]) | |
| Jun 19, 2016 at 11:32 | history | edited | Sumit | CC BY-SA 3.0 | added 190 characters in body |
| Jun 19, 2016 at 11:23 | comment | added | Sumit | @Vaggelis_Z, My bad, it would be Graphics`Mesh`PointWindingNumber. I modified my answer. Let me know if it works. | |
| Jun 19, 2016 at 11:22 | history | edited | Sumit | CC BY-SA 3.0 | deleted 8 characters in body |
| Jun 19, 2016 at 10:14 | comment | added | Vaggelis_Z | In v9 when I evaluate data2 = Select[data, inPolyQ[poly, #] &]; I get exactly the same points as in data. | |
| Jun 19, 2016 at 10:05 | history | edited | Sumit | CC BY-SA 3.0 | added 830 characters in body |
| Jun 19, 2016 at 10:01 | comment | added | Sumit | @happyfish Sorry, I noticed that. Unfortunately now I don't have M9 in my hand, so I just describe the method for M9 without an example. | |
| Jun 19, 2016 at 10:00 | history | edited | Sumit | CC BY-SA 3.0 | added 830 characters in body |
| Jun 19, 2016 at 9:50 | comment | added | vapor | RegionMember is introduced in V10, may need to replace it to run on OP's computer | |
| Jun 19, 2016 at 9:36 | comment | added | Sumit | Just make a close contour anyway. Hold on I am going to give an example with arbitrary point. | |
| Jun 19, 2016 at 9:34 | comment | added | Vaggelis_Z | This works only when the curve has a known analytical expression. In my real case, the curve is given only as a set of points. | |
| Jun 19, 2016 at 9:31 | history | answered | Sumit | CC BY-SA 3.0 |