Pic 1. Surface built from contour inequalities
This result was obtained with "examples/surfit/curvs/contour_ineq.tcl" script.
00001 # 00002 # This script was generated with funner v2.1beta (www.gridding.info) 00003 00004 # 00005 # load plugins 00006 # 00007 load libsurfit[info sharedlibextension] 00008 00009 # remove all previous data and gridding rules 00010 clear_data 00011 00012 # set name of surface 00013 set map_name "map_cntr_ineq" 00014 00015 # set solver 00016 set_solver "cg" 00017 00018 # set tolerance for solver 00019 set tol 1e-005 00020 00021 ## 00022 ## load initial data 00023 ## 00024 00025 # load contour from text file 00026 cntr_read "cntr_big_circle2.xyz" "cntr_big_circle2" 00027 00028 # load contour from text file 00029 cntr_read "cntr_big_circle.xyz" "cntr_big_circle" 00030 00031 # load contour from text file 00032 cntr_read "cntr_center2.xyz" "cntr_center2" 00033 00034 # load contour from text file 00035 cntr_read "cntr_center.xyz" "cntr_center" 00036 00037 # load contour from text file 00038 cntr_read "cntr_small_circle2.xyz" "cntr_small_circle2" 00039 00040 # load contour from text file 00041 cntr_read "cntr_small_circle.xyz" "cntr_small_circle" 00042 00043 ## 00044 ## construct grid 00045 ## 00046 grid_get -1000 1000 20 -1000 1000 20 00047 00048 ## 00049 ## create gridding rules 00050 ## 00051 00052 # resulting surface at contour >= contour values 00053 contour_geq "cntr_big_circle" 00054 00055 # resulting surface at contour <= contour values 00056 contour_leq "cntr_big_circle2" 00057 00058 # resulting surface at contour >= contour values 00059 contour_geq "cntr_center" 00060 00061 # resulting surface at contour <= contour values 00062 contour_leq "cntr_center2" 00063 00064 # resulting surface at contour >= contour values 00065 contour_geq "cntr_small_circle" 00066 00067 # resulting surface at contour <= contour values 00068 contour_leq "cntr_small_circle2" 00069 00070 # resulting surface should tend to be constant or plane 00071 completer 00072 00073 ## 00074 ## run gridding algorithm 00075 ## 00076 surfit 00077 00078 ## 00079 ## save results 00080 ## 00081 00082 # unload grid from memory 00083 grid_unload 00084 00085 # save surface to surfit datafile 00086 surf_save "contour_ineq.dat" "map_cntr_ineq"
surfit: open source gridding and contouring software.