www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/03/15:17:53

From: "Alan McFarlane" <amcfarlane AT bigfoot DOT com>
Subject: [Q] Segmented line in 3D space
Newsgroups: comp.os.msdos.djgpp
Message-ID: <01bf3dc6$a4de1520$3a8243d4@online-100>
X-Newsreader: Microsoft Internet News 4.70.1155
NNTP-Posting-Host: da130d58.dialup.callnetuk.com
X-Original-NNTP-Posting-Host: da130d58.dialup.callnetuk.com
Date: 3 Dec 1999 19:39:51 GMT
X-Trace: 3 Dec 1999 19:39:51 GMT, da130d58.dialup.callnetuk.com
Lines: 16
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Given a two points with the following structure:

struct
{
  float fx, fy, fz; /* 3D coordinate */
  int sx, sy;      /* projected 2D corrdinate */
}
P1, P2;

How can I I draw a line between the the points, using multiple segments,
each one colored according to the value of 'z' at that point?


-- 
Alan McFarlane
amcfarlane AT bigfoot DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019