Computer And Programming Wrold

A large number of C-programs implementing different algorithms are given in the Blog. Most of the programs are provided in both text mode as well as in graphics mode. While text mode programs can be executed on any platform having a C-compiler, the graphics mode programs require an IBM PC (or equivalent) with WINDOWS operating system and Turbo C or Borland C compiler. So enjoy it... - Amit Upadhyay (amitwebhero@gmail.com)

Labels

  • Computer Science
  • Computer.
  • Data Structures
  • Operating System
  • Programming
  • Text Mode Programs

Friday, 31 May 2013

Black Face Removal Algorithm for Plane Surfaces in text mode.


Read more »
Posted by Amit Upadhyay at 04:37 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: Text Mode Programs
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Today's Pageviews

Popular Posts

  • Cyrus Beck Clipping Algorithm
    /* This routine performs 2D clipping. It is assumed that user   /* will supply window and line co-ordinates.                 /* For the...
  • C-Program for Bresenham’s Line algorithm
                     (for lines with |slope|<1).                                                   This program performs scan conversion of...
  • Open Source Programming VS Closed Source Programming
    Open source is a general software license that has revolutionized the software development industry. Before open source software development...

Blog Archive

  • ►  2015 (1)
    • ►  March (1)
  • ►  2014 (7)
    • ►  June (7)
  • ▼  2013 (1)
    • ▼  May (1)
      • Black Face Removal Algorithm for Plane Surfaces in...
  • ►  2011 (8)
    • ►  August (8)

MORE INSTRUCTIONS

The programs are written in modular form. Users may read them carefully and can modify as per their requirements. Some of the programs need some specific input features. For example, in the Back Face Removal Algorithm each polygon surface must be entered in anticlockwise order of their vertices when viewed by the viewer from outside. Similar are the cases with the Cyrus Beck Clipping and Sutherland-Hodgeman Polygon Clipping Algorithms also. The Gourad Shading Algorithm is written here only for a specific type of triangular surface. With careful inputs this program can be executed for other polygonal surfaces also. It is recommended to input vertices in anticlockwise fashion starting from the topmost node. The Cyrus-Beck Clipping Algorithm, presented here, can execute only with regular rectangular windows. However, developing a generalized form is recommended.

To avoid large number of inputs, all inputs for a program may be written a priori in a file, in perfect order, and then can be inserted at the command line in the following form ( e.g., in Unix ):

$ backface <>

In almost all programs, a buffer of a certain size is maintained for storing the scan conversion results. This buffer size may be changed to hold large outputs.

Like us on Facebook... Now!

Picture Window theme. Theme images by mattjeacock. Powered by Blogger.