Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

3D LINES AND FILLS > Making shapes

Making shapes

Random lines are cool for demonstration purposes, but there's no reason you can't impose a bit of order on that mess. All it takes is getting rid of the initial loop that creates random x, y, and z values for those points and replacing it with some specific, predetermined values. For example, let's make a square. Figure 16-3 shows the square you'll draw and the 3D locations of its four corners.

Coordinates of a square in 3D space



  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial