How do I map points from one mesh to another?

Let's say I have a 2d linear mesh and a point on the specified mesh. How do I map a point from this mesh to a linked nonlinear mesh?

example image

The red dot is a dot on a regular grid, and I want to know how to determine where the point will go in such a deformed grid (example shown in the picture). I am thinking of using the difference between the points in the undeformed mesh and the deformed mesh to get a solution, but I'm not sure how.

+2


source to share


1 answer


You might want to read Affine Conversions . Not much magic here, just a little translation and shearing . All of this is only done with matrix multiplication for coordinate pairs (into homogeneous coordinates ), so it's very easy to do. But it can be a little hard to understand :-)



+3


source







All Articles