home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2751 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: tcp.co.uk!usenet
  2. From: agale@agale.tcp.co.uk (Aaron Gale)
  3. Newsgroups: comp.lang.pascal.borland,comp.lang.pascal.mac,comp.lang.pascal.ansi-iso,comp.lang.pascal.misc,comp.sys.amiga.programmer,comp.graphics.algorithms,comp.os.ms-windows.programmer.graphics,comp.sys.amiga.graphics
  4. Subject: 3d programming
  5. Date: 5 Feb 1996 02:01:13 GMT
  6. Organization: Private Node
  7. Message-ID: <4f3od9$2jg@zeus.tcp.co.uk>
  8. NNTP-Posting-Host: agale.tcp.co.uk
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=iso-8859-1
  11. Content-Transfer-Encoding: 8bit
  12. X-NewsSoftware: GRn 2.1 Feb 19, 1994
  13.  
  14. Hi,
  15.  
  16. I have a problem with a program I am trying to write:
  17.  
  18. Does anyone know how to find the intersection of a line and plane
  19. in simple x,y and z cartesian coordinates.  I have a model made
  20. up of facets, each facet being defined by 4 points.  The working
  21. envelope that this model is in, is then scanned from the bottom
  22. to the top.  However I can't work out how to calculate the z
  23. coordinate along the scan line that may intersect with a facet.
  24.  
  25. The scanning line is always horizontal and is defined with the
  26. x and y coordinates remaining the same, with one end of the line
  27. minus z and the other end positive z. As an example at what point
  28. does the line whose start point is (54,46,-100) and whose end
  29. point is (54,46,100) intersect with a plane facet defined by 4
  30. points in a anti-clockwise direction point 1 (40,20,-70),
  31. point 2 (40,60,-40), point 3 (120,60,-40) and point 4 (120,20,-70).
  32.  
  33. --
  34. I must get round to writing myself a decent signature
  35.  
  36.