----- file created by makedoc on: Thu Sep 11 15:03:11 2014
----- Documentation for /scisoft/xop2.4/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
        	x: The array with x (in this case, nx and ww are not used)
        	y: The array with y (in this case, ny and ll are not used)
		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: cone in sag (averaged at edges)+ central meridional
			6: cone in sag (tg at pole)+ 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}
		use_second_solution: set this flag to use the second solution
                       from the two possible surfaces
		dialog_parent: parent widget id to pass to i/o windows.

	AUTHOR: 
		M. Sanchez del Rio srio@esrf.eu
	
	MODIFICATION HISTORY:
		2007-11-08 written
		2009-07-24 added option 6, fixed bug with 5
		2010-06-22 added dialogs for modifying sagittal
                          focal distances


