Linked Questions
49 questions linked to/from How to check if a 2D point is in a polygon?
-1
votes
2
answers
786
views
Selecting points inside a closed curve [duplicate]
Let's create a rather dense grid of initial conditions
...
27
votes
1
answer
1k
views
Face Morphing with Mathematica
Can Mathematica be used to produce animations of face morphing (as described in wikipedia?
This is a self-answered question because I felt there was a lack of resources on this topic, to share funny ...
6
votes
1
answer
518
views
Behavior of Graphics`Mesh`InPolygonQ with self-intersecting polygons
Playing around with some of the answers in the question How to check if a 2D point is in a polygon? I noticed that:
Graphics`Mesh`InPolygonQ[poly,pt]
Displays ...
5
votes
1
answer
343
views
Find a continuous map between two sets of 2D points
Given two sets of points in 2D points1 and points2 inside a rectangle, I would like to find a continuous map ...
5
votes
1
answer
625
views
Curved mesh boundary from space curve
This is a follow-up question to an earlier question.
Question: Given a general space curve xy[t_] = {x[t], y[t]}, how can a region be generated to yield a mesh ...
4
votes
1
answer
1k
views
Return "true" if point is in Convex Hull [duplicate]
I have a set of points Z:
Z = {{x1,y1},{x2,y2},..,}
I would like to obtain a function that returns ...
3
votes
1
answer
721
views
Turn list of edges into a polygon function
I have a list of coordinates that define the edges of a polygon and I would like to get a function defining the area Inside out if it (The polygon is convex and the points are in order)
So that for ...
1
vote
1
answer
145
views
Checking membership of 2d region
I want to check whether a point $(x,y)$ belongs to a square region whose x-interval is $[x_1,x_2]$ and y-interval is $[y_1,y_2]$. I defined the 2d region as
...
1
vote
1
answer
128
views
Predicting the initial conditions of orbits inside a closed curve
I have a data file containing the four orbital element $(x,y,p_x,p_y)$ of a two-dimensional closed loop orbit. Note that the exact implicit equation of the orbit is not known.
The plot of the 2D ...
0
votes
1
answer
183
views
How to find point within polygons and connect them
I have the following figure:
Here, I have the following values of 25 image corner-points:
...
9
votes
0
answers
235
views
Finding hidden treasure (aka finding undocumented functions) [duplicate]
I was searching for a way to determine if a point is within a polygon and stumbled upon rm -rf's answer. (actually, I really wanted to find a point within a ...
2
votes
0
answers
177
views
Draw segment in arrayplot and get intensity value and coordinates in segment
I want to segment an arrayplot donut in to 6 pizza slices and export per segment the coordinates and intensity values of the pixels inside of it.
I found a good example, which used RegionMember to ...
1
vote
0
answers
334
views
Collision detection algorithm (discrete) with sweep and prune algorithm for periodic boundary conditions
EDIT: Question Updated with solution approach, but solution much slower than original implementation. Any ideas to speed up implementation?
In the discussion on collision detection (see here) I asked ...
0
votes
0
answers
74
views
How to judge if a point is in the interior of a closed curve or not? [duplicate]
For example:
pts = {{0, 1}, {-(Sqrt[3]/2), -(1/2)}, {Sqrt[3]/2, -(1/2)}};
trig=JoinedCurve[Line[pts], CurveClosed -> True];
Then ...
0
votes
0
answers
109
views
how to interactively select points inside certain region in a plot [duplicate]
Very often I encounter a situation that I want to select some points inside certain areas of a plot. For example,
...