home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / sci / math / 10851 < prev    next >
Encoding:
Internet Message Format  |  1992-09-01  |  1.8 KB

  1. Path: sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewsm!cbnewsk!att-out!oucsboss!oucsace!bwhite
  2. From: bwhite@oucsace.cs.ohiou.edu (William E. White )
  3. Newsgroups: sci.math
  4. Subject: Need help on convex 4-gon to convex 4-gon xform algorithm
  5. Message-ID: <1992Sep2.070041.2532@oucsace.cs.ohiou.edu>
  6. Date: 2 Sep 92 07:00:41 GMT
  7. Distribution: usa
  8. Organization: O.U., Harvard on the Hocking, Berkeley in the Boondocks!
  9. Lines: 23
  10.  
  11. Where I work we need to transform an arbitrary convex four-sided polygon
  12. to another arbitrary convex four-sided polygon (well actually we know the
  13. coordinates of the source and destination 4-gon; what we want is to find
  14. a mapping that goes from one to the other).  In the end, we should be
  15. able to apply this mapping to, say, a grid of lines within the source 4-gon 
  16. and have a similar (but "squashed") grid appear on the other 4-gon.
  17.  
  18. The only thing I could think of off hand was using two affine mappings and
  19. dividing the 4-gon into two triangles; this works for our original needs
  20. (which was that the transform would only be used on points on the sides of
  21. the 4-gon itself), but now we need to be able to transform any point, inside
  22. or outside of the original 4-gon.  I know there's a way to do this but I'm
  23. having enough trouble with linear algebra as it is.
  24.  
  25. Please email all responses.  This is going into software; exact answers take
  26. precedence over computational time.  I have code to invert a matrix if the
  27. solution can be expressed as a linear equation.
  28.  
  29. William White                        bwhite@oucsace.cs.ohiou.edu
  30. -- 
  31. |  Bill White   +1-614-594-3434     |  bwhite@oucsace.cs.ohiou.edu (normal)   |
  32. |  `finger bwhite@view..' for more  |  bwhite@view.cs.ohiou.edu (alternate)   |
  33. |  --> I'm a replicating .signature virus!  Copy me and join in the fun! <--  |
  34.