sfnorm(3NCARG)


NAME

   SFNORM - The subroutines SFWRLD and SFNORM are used to fill that
   portion of the plotter frame inside the area defined by a given
   polygonal boundary.

SYNOPSIS

   CALL SFNORM (XRA,YRA,NRA,DST,NST,IND,NND)
   CALL SFWRLD (XRA,YRA,NRA,DST,NST,IND,NND)

C-BINDING SYNOPSIS

   #include <ncarg/ncargC.h>

   void c_sfnorm (float *xra, float *yra, int nra,
   float *dst, int nst, int *ind, int nnd)

   void c_sfwrld (float *xra, float *yra, int nra,
   float *dst, int nst, int *ind, int nnd)

DESCRIPTION

   XRA         (an input/output array of type REAL, dimensioned NRA)
               contains the X coordinates of the points defining the area
               to be filled, in the user coordinate system (if SFWRLD is
               called) or in the fractional coordinate system (if SFNORM
               is called). Upon return from SFWRLD, the contents of XRA
               will have been converted to the fractional coordinate
               system.

   YRA         (an input/output array of type REAL, dimensioned NRA)
               contains the Y coordinates of the points defining the area
               to be filled, in the user coordinate system (if SFWRLD is
               called) or in the fractional coordinate system (if SFNORM
               is called). Upon return from SFWRLD, the contents of YRA
               will have been converted to the fractional coordinate
               system.

   NRA         (an input expression of type INTEGER) is the number of
               points defining the area to be filled. NRA must be greater
               than two.

   DST(NST)    (a scratch array of type REAL, dimensioned NST or greater)
               is for use by the fill algorithm.

   NST         (an input expression of type INTEGER) is the length of the
               array DST. It must be greater than or equal to NRA + NIM,
               where NIM is the largest number of intersection points of
               any fill line with the boundary lines. To be sure DST is
               large enough, use NIM = NRA; in practice, NIM rarely needs
               to be that large.  For a convex polygon, for example, NIM =
               2 suffices.

   IND         (a scratch array of type INTEGER, dimensioned NND or
               greater) is for use by the fill algorithm.

   NND         (an input expression of type INTEGER) is the length of the
               array IND. It must be greater than or equal to NRA + 2 *
               NIM, where NIM is as defined above.

C-BINDING DESCRIPTION

   The C-binding argument descriptions are the same as the FORTRAN
   argument descriptions.

USAGE

   Both SFWRLD and SFNORM fill the area defined by the points
   (XRA(I),YRA(I)), for I from 1 to NRA. The lines connecting point 1 to
   point 2, point 2 to point 3, ..., point NRA-1 to point NRA, and point
   NRA to point 1 bound the area to be filled. The default values of
   SOFTFILL's internal parameters cause fill to be done with solid,
   horizontal lines .00125 normalized-device-coordinate units apart.

   Use SFWRLD if the arrays XRA and YRA contain world coordinates.  Use
   SFNORM if XRA and YRA contain normalized device coordinates. Since
   SFWRLD transforms XRA and YRA from world coordinates to normalized
   device coordinates, any subsequent calls with those arrays should be to
   SFNORM (for example, to create a cross-hatched effect).

EXAMPLES

   Use the ncargex command to see the following relevant examples:
   ccpscam, cpex01, cpex02, cpex03, sfex01, tsoftf.

ACCESS

   To use SFWRLD, SFNORM, c_sfwrld, or c_sfnorm, load the NCAR Graphics
   libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order.

MESSAGES

   See the softfill man page for a description of all Softfill error
   messages and/or informational messages.

SEE ALSO

   Online: softfill, softfill_params, sfgetc, sfgeti, sfgetp, sfgetr,
   sfsetc, sfseti, sfsetp, sfsetr, sfsgfa, ncarg_cbind

   Hardcopy: NCAR Graphics Fundamentals, UNIX Version

COPYRIGHT

   Copyright (C) 1987-2009
   University Corporation for Atmospheric Research
   The use of this Software is governed by a License Agreement.





Opportunity


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.





Free Software


Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.


Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.





Free Books


The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.


Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.





Education


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.


Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.