| PPPLCL(3NCARG) | NCAR GRAPHICS | PPPLCL(3NCARG) |
PPPLCL - clips a polyline against a clipping rectangle. It is intended that, eventually, there should be a better routine that will clip a polyline against an arbitrary polygon, but that routine has not yet been written.
CALL PPPLCL (XMIN,XMAX,YMIN,YMAX,XCPL,YCPL,NCPL,RWRK,LRWK,URPF,IERR)
#include <ncarg/ncargC.h>
void c_ppplcl(float xmin,
float xmax,
float ymin,
float ymax,
float *xcpl,
float *ycpl,
int ncpl,
float *rwrk,
int lwrk,
int (*urpf_)(float *xcra,
float *ycra,
int *ncra),
int *ierr)
SUBROUTINE URPF (XCRA,YCRA,NCRA)
DIMENSION XCRA(NCRA),YCRA(NCRA)
...(code to process a polyline)...
RETURN
END
Each of the arguments XCRA and YCRA is a real array, dimensioned NCRA; the former holds the X coordinates, and the latter the Y coordinates, of a polyline fragment.
The C-binding argument descriptions are the same as the FORTRAN argument descriptions.
The FORTRAN statement
CALL PPPLCL (XMIN,XMAX,YMIN,YMAX,XCPL,YCPL,NCPL,RWRK,LRWK,URPF,IERR)
clips a polyline against a rectangle and delivers the portions of the polyline that fall within the rectangle, one by one, to the user-specified polyline-fragment-processing routine URPF.
Use the ncargex command to see the following relevant examples: ppex01, tppack, c_ppex01.
To use PPPLCL or c_ppplcl, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order.
Online: polypack, ppdipo, ppditr, ppinpo, ppintr, ppppap, ppunpo, ppuntr, ncarg_cbind.
Hardcopy: None.
Copyright (C) 1987-2009
University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.
| March 1995 | UNIX |