----- file created by makedoc on: Tue May 29 14:42:50 2012
----- Documentation for /sware/exp/xop-2.3/extensions/shadowvui/src/lib/conicmesh.pro -----


       NAME:
               CONICMESH
       PURPOSE:
               This function calculates a mesh surface
               using the conic coefficients from conicset()
       CATEGORY:
               SHADOW tools
       CALLING SEQUENCE:
               conicmesh,c

 	INPUTS:
		c: 10 conic coefficients, like the  output of 
			conicset()
	
 	KEYWORD PARAMETERS
		ww: the surface width in cm (along X)
		ll: the surface length in cm (along Y)
        	nx: number of points in X
        	ny: number of points in Y
		modify: a flag for allowing to modify the
			conic surface: 
			0: no modification
			1: REPLICATE central meridional prof
			2: REPLICATE central sag prof
			3: replicate central mer + add central sag
			4: fixed in sag + central meridional
			5: conic in sag + central meridional
		pp: the p distance in cm (needed if modify=4,5)
		qq: the q distance in cm (needed if modify=4,5)
		theta: grazing incident angle in rad (needed if 
			modify=4,5)
		presurface: set to a file name to write the 
			surface in SHADOW predurface format.
		surf: set to a named variable to get the surface 
			in a structuto of type { x:x, y:y, z:z}

	AUTHOR: 
		M. Sanchez del Rio srio@esrf.eu
	
	MODIFICATION HISTORY:
		2007-11-08 written


