Linked Questions

-1 votes
2 answers
786 views

Selecting points inside a closed curve [duplicate]

Let's create a rather dense grid of initial conditions ...
Vaggelis_Z's user avatar
  • 8,760
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 ...
anderstood's user avatar
  • 14.3k
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 ...
Avi's user avatar
  • 63
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 ...
anderstood's user avatar
  • 14.3k
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 ...
Will.Mo's user avatar
  • 1,237
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 ...
Breugem's user avatar
  • 785
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 ...
a3f's user avatar
  • 317
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 ...
Deep's user avatar
  • 479
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 ...
Vaggelis_Z's user avatar
  • 8,760
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: ...
Odrisso's user avatar
  • 191
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 ...
bobthechemist's user avatar
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 ...
Eib's user avatar
  • 21
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 ...
Rainer's user avatar
  • 2,891
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 ...
goodluck's user avatar
  • 605
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, ...
xslittlegrass's user avatar

15 30 50 per page